# CVE-2022-25967: Eta vulnerable to Code Injection via templates rendered with user-defined data

- Severity: High 8.1 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.20%, higher than 83% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-01-30T05:00:01.228Z
- Modified: 2026-06-17T04:34:32.130Z
- Also known as: GHSA-mf6x-hrgr-658f
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- eta: before 2.0.0
- eta (npm): before 2.0.0
- eta.js eta: before 2.0.0

## Every score

- snyk: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://security.snyk.io/vuln/SNYK-JS-ETA-2936803> (exploit, third-party-advisory, web)
- <https://github.com/eta-dev/eta/blob/9c8e4263d3a559444a3881a85c1607bf344d0b28/src/file-handlers.ts%23L182> (broken-link, web)
- <https://github.com/eta-dev/eta/blob/9c8e4263d3a559444a3881a85c1607bf344d0b28/src/compile-string.ts%23L21> (broken-link, web)
- <https://github.com/eta-dev/eta/commit/5651392462ee0ff19d77c8481081a99e5b9138dd> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25967> (advisory)
- <https://github.com/eta-dev/eta> (package)

## Sources

- CVE List: [CVE-2022-25967](https://www.cve.org/CVERecord?id=CVE-2022-25967), CVE Terms of Use, modified 2025-03-27
- GitHub Advisory Database: [GHSA-mf6x-hrgr-658f](https://github.com/advisories/GHSA-mf6x-hrgr-658f), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-25967](https://nvd.nist.gov/vuln/detail/CVE-2022-25967), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-25967 · Whole record: https://cve.day/CVE-2022-25967.json · Rebuilt by cve.day 2026-11-25T22:58:18.400Z
