{"id":"GHSA-mf6x-hrgr-658f","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. **Note:** This is exploitable only for users who are rendering templates with user-defined data.","aliases":["CVE-2022-25967"],"modified":"2023-11-08T04:08:52.941788Z","published":"2023-01-30T06:30:27Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2023-02-01T01:34:42Z","nvd_published_at":"2023-01-30T05:15:00Z","cwe_ids":["CWE-94"],"severity":"HIGH"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25967"},{"type":"WEB","url":"https://github.com/eta-dev/eta/commit/5651392462ee0ff19d77c8481081a99e5b9138dd"},{"type":"PACKAGE","url":"https://github.com/eta-dev/eta"},{"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"}],"affected":[{"package":{"name":"eta","ecosystem":"npm","purl":"pkg:npm/eta"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.0.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/01/GHSA-mf6x-hrgr-658f/GHSA-mf6x-hrgr-658f.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}