CVE-2022-25967
HIGH 8.8CVSS 3.1Eta vulnerable to Code Injection via templates rendered with user-defined data
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.
- Published
- 30 Jan 2023
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- GHSA-mf6x-hrgr-658f
- Sources
- NVDJSONOSV GHSA-mf6x-hrgr-658fJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | eta.js | etacpe:2.3:a:eta.js:eta:*:*:*:*:*:node.js:*:* |
< 2.0.0 | 2.0.0 |
| OSV | npm | eta | < 2.0.0 | 2.0.0 |
References
- https://github.com/eta-dev/eta/blob/9c8e4263d3a559444a3881a85c1607bf344d0b28/src/compile-string.ts%23L21 · Broken Link, WEB
- https://github.com/eta-dev/eta/blob/9c8e4263d3a559444a3881a85c1607bf344d0b28/src/file-handlers.ts%23L182 · Broken Link, WEB
- https://github.com/eta-dev/eta/commit/5651392462ee0ff19d77c8481081a99e5b9138dd · Patch, Third Party Advisory, WEB
- https://security.snyk.io/vuln/SNYK-JS-ETA-2936803 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-25967 · ADVISORY
- https://github.com/eta-dev/eta · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 30 Jan 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 30 Jan 2023)