{"id":"CVE-2022-25967","aliases":["CVE-2022-25967","GHSA-mf6x-hrgr-658f"],"related":[],"kind":"vulnerability","state":"published","title":"Eta vulnerable to Code Injection via templates rendered with user-defined data","summary":"Versions of the package eta before 2.0.0 are vulnerable to Remote Code Execution (RCE) by overwriting template engine configuration variables with view options received from The Express render API.\n\n**Note:** This is exploitable only for users who are rendering templates with user-defined data.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Versions of the package eta before 2.0.0 are vulnerable to Remote Code Execution (RCE) by overwriting template engine configuration variables with view options received from The Express render API.\n\n**Note:** This is exploitable only for users who are rendering templates with user-defined data.","source":"cvelist"},{"lang":"es","text":"Las versiones del paquete eta anteriores a la 2.0.0 son vulnerables a la ejecución remota de código (RCE) al sobrescribir las variables de configuración del motor de plantilla con las opciones de visualización recibidas de la API de renderizado Express. **Nota:** Esto solo es explotable para usuarios que renderizan plantillas con datos definidos por el usuario.","source":"nvd"}],"published":"2023-01-30T05:00:01.228Z","modified":"2026-06-17T04:34:32.130Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"2.0.0","status":"affected"}],"product":"eta","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.0"}],"ecosystem":"npm","package":"eta","purl":"pkg:npm/eta","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.0.0"}],"vendor":"eta.js","product":"eta","cpe":"cpe:2.3:a:eta.js:eta:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-ETA-2936803","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/eta-dev/eta/blob/9c8e4263d3a559444a3881a85c1607bf344d0b28/src/file-handlers.ts%23L182","tags":["broken-link","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/eta-dev/eta/blob/9c8e4263d3a559444a3881a85c1607bf344d0b28/src/compile-string.ts%23L21","tags":["broken-link","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/eta-dev/eta/commit/5651392462ee0ff19d77c8481081a99e5b9138dd","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25967","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/eta-dev/eta","tags":["package"],"sources":["ghsa"]}],"credits":["Rayhan Ahmed Niloy"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-03-27T20:15:33.469Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-25967","url":"https://www.cve.org/CVERecord?id=CVE-2022-25967","licence":"CVE Terms of Use","modified":"2025-03-27T20:15:37.734Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mf6x-hrgr-658f","url":"https://github.com/advisories/GHSA-mf6x-hrgr-658f","licence":"CC-BY-4.0","modified":"2023-11-08T04:08:52.941Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-25967","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25967","licence":"Public domain","modified":"2026-06-17T04:34:32.130Z"}],"updatedAt":"2026-11-25T22:58:18.400Z","epss":{"score":0.02202,"percentile":0.83041,"date":"2026-12-01T12:00:22.000Z"}}