{"id":"CVE-2022-25967","aliases":["EUVD-2023-0508","GHSA-mf6x-hrgr-658f"],"status":"published","title":"Eta vulnerable to Code Injection via templates rendered with user-defined data","description":"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.","severity":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.02077,"percentile":0.81741,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-94"],"published":"2023-01-30T05:00:01Z","modified":"2026-10-28T02:31:06Z","fixes":[{"ecosystem":"npm","package":"eta","fixed_in":["2.0.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"eta","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0"}]}]},{"source":"osv","ecosystem":"npm","package":"eta","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.0.0"}]}]}],"products":[{"vendor":"eta-dev","product":"eta"},{"vendor":"eta.js","product":"eta"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-ETA-2936803","tags":["x_transferred","exploit","Third Party Advisory","web"]},{"url":"https://github.com/eta-dev/eta/blob/9c8e4263d3a559444a3881a85c1607bf344d0b28/src/file-handlers.ts%23L182","tags":["x_transferred","Broken Link","web"]},{"url":"https://github.com/eta-dev/eta/blob/9c8e4263d3a559444a3881a85c1607bf344d0b28/src/compile-string.ts%23L21","tags":["x_transferred","Broken Link","web"]},{"url":"https://github.com/eta-dev/eta/commit/5651392462ee0ff19d77c8481081a99e5b9138dd","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25967","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-mf6x-hrgr-658f"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25967.json","tags":["advisory"]},{"url":"https://github.com/eta-dev/eta","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-25967","description":"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","status":"published","published":"2023-01-30T05:00:01.228Z","modified":"2025-03-27T20:15:37.734Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","level":"high","assessor":"cna"}],"cwes":["CWE-94","CWE-94"],"updated_at":"2026-11-02T14:34:28.374916Z"}],"euvd":[{"id":"EUVD-2023-0508","description":"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","status":"published","published":"2023-01-30T05:00:01Z","modified":"2025-03-27T20:15:37Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","level":"high"}],"updated_at":"2026-11-02T20:52:48.662755Z"}],"ghsa":[{"id":"GHSA-mf6x-hrgr-658f","title":"Eta vulnerable to Code Injection via templates rendered with user-defined data","description":"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. **Note:** This is exploitable only for users who are rendering templates with user-defined data.","status":"published","published":"2023-01-30T06:30:27Z","modified":"2023-02-07T23:18:24Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:36:44.093794Z"}],"nvd":[{"id":"CVE-2022-25967","description":"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","status":"published","published":"2023-01-30T05:15:10.177Z","modified":"2026-06-17T04:34:32.13Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:07:35.561816Z"}],"osv":[{"id":"CVE-2022-25967","description":"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","status":"published","published":"2023-01-30T05:00:01.228Z","modified":"2026-10-28T02:31:06.752123305Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:44:24.758293Z"},{"id":"GHSA-mf6x-hrgr-658f","title":"Eta vulnerable to Code Injection via templates rendered with user-defined data","description":"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. **Note:** This is exploitable only for users who are rendering templates with user-defined data.","status":"published","published":"2023-01-30T06:30:27Z","modified":"2023-11-08T04:08:52.941788Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:46:51.811331Z"}]}}
