{"id":"CVE-2022-25967","published":"2023-01-30T05:00:01Z","modified":"2025-03-27T20:15:37Z","title":"Versions of the package eta before 2.0.0 are vulnerable to Remote Code Execution (RCE) by overwriting template engine…","vendor":null,"product":null,"tier":"tail","description":{"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.\r\r**Note:** This is exploitable only for users who are rendering templates with user-defined data.\r\r","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02077,"percentile":0.81957,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-ETA-2936803","tags":[]},{"url":"https://github.com/eta-dev/eta/blob/9c8e4263d3a559444a3881a85c1607bf344d0b28/src/file-handlers.ts%23L182","tags":[]},{"url":"https://github.com/eta-dev/eta/blob/9c8e4263d3a559444a3881a85c1607bf344d0b28/src/compile-string.ts%23L21","tags":[]},{"url":"https://github.com/eta-dev/eta/commit/5651392462ee0ff19d77c8481081a99e5b9138dd","tags":[]}],"priority":{"score":22.1,"factors":[{"name":"EPSS percentile","points":16.39},{"name":"CVSS severity","points":5.67}]},"affectedVersions":[{"vendor":"n/a","product":"eta","versions":["< 2.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-03-27T20:15:33.469914Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"eta","vulnerableRanges":["<2.0.0"],"patched":["2.0.0"],"from":["GHSA-mf6x-hrgr-658f"],"provenance":"source"}],"summary":{"text":"The flaw is an improper control of code generation (code injection) in the eta package, affecting versions before 2.0.0, where template engine configuration variables can be overwritten using view options passed in through the Express render API. An attacker who can supply data that is rendered as a template, such as user-defined input over the network with no authentication or user interaction required, can achieve remote code execution, though this is only exploitable where templates are rendered with user-defined data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:52:19Z"},"euvd":{"id":"EUVD-2023-0508","exploited":false,"provenance":"source"}}