8.6high
Cross-site (XSS) vulnerability with Express API in Eta
- Severity
- 8.6high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.87% (higher than 57% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-xrh7-m5pp-39r6
Description
Eta is an embedded JS templating engine that works inside Node, Deno, and the browser. XSS attack - anyone using the Express API is impacted. The problem has been resolved. Users should upgrade to version 2.0.0. As a workaround, don't pass user supplied things directly to `res.render`.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| eta-dev eta | < 2.0.0 | CVE List |
| eta (npm) | before 2.0.0 | GitHub Advisory Database |
| eta.js eta | before 2.0.0 | NVD |
All scores
| GitHub_M | 8.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H |
| GitHub | 8.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
Eta is an embedded JS templating engine that works inside Node, Deno, and the browser. XSS attack - anyone using the Express API is impacted. The problem has been resolved. Users should upgrade to version 2.0.0. As a workaround, don't pass user supplied things directly to `res.render`.
GitHub Advisory Database
Impact
XSS attack - anyone using the Express API is impacted
Patches
The problem has been resolved. Users should upgrade to version 2.0.0.
Workarounds
Don't pass user supplied data directly to res.renderFile.
References
Are there any links users can visit to find out more? See https://github.com/eta-dev/eta/releases/tag/v2.0.0
References
| https://github.com/eta-dev/eta/security/advisories/GHSA-xrh7-m5pp-39r6 | third-party-advisory, web | |
| https://github.com/eta-dev/eta/commit/5651392462ee0ff19d77c8481081a99e5b9138dd | patch, third-party-advisory, web | |
| https://github.com/eta-dev/eta/releases/tag/v2.0.0 | release-notes, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-23630 | advisory | |
| https://github.com/eta-dev/eta | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-23630 changed 2025-03-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xrh7-m5pp-39r6 changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2023-23630 changed 2026-06-17 | Public domain |