{"id":"CVE-2022-25967","aliases":["GHSA-mf6x-hrgr-658f"],"url":"https://o3.security/vulnerability/CVE-2022-25967","summary":"Eta vulnerable to Code Injection via templates rendered with user-defined data","details":"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.\r\r**Note:** This is exploitable only for users who are rendering templates with user-defined data.\r\r","published":"2023-01-30T05:00:01.228Z","modified":"2026-08-27T03:48:40.798946072Z","cvss":{"score":8.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P"},"epss":{"score":0.01995,"percentile":0.78953,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"eta","fixedVersion":"2.0.0"}],"fix":{"url":"https://github.com/eta-dev/eta/commit/5651392462ee0ff19d77c8481081a99e5b9138dd","label":"eta-dev/eta@5651392"},"references":[{"type":"WEB","url":"https://github.com/eta-dev/eta/blob/9c8e4263d3a559444a3881a85c1607bf344d0b28/src/compile-string.ts%23L21"},{"type":"WEB","url":"https://github.com/eta-dev/eta/blob/9c8e4263d3a559444a3881a85c1607bf344d0b28/src/file-handlers.ts%23L182"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-ETA-2936803"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25967.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25967"},{"type":"FIX","url":"https://github.com/eta-dev/eta/commit/5651392462ee0ff19d77c8481081a99e5b9138dd"},{"type":"PACKAGE","url":"https://github.com/eta-dev/eta"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-27T03:48:40.798946072Z"}}