nodejs ejs versions older than 2.5.3 is vulnerable to remote code execution due to weak…
Priority MEDIUM 51CWE-20Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and GitHub.
Summary
nodejs ejs versions older than 2.5.3 is vulnerable to remote code execution due to weak input validation in ejs.renderFile() function
Why it matters now
EPSS 0.0638 93rd percentileScored 2026-11-07
Fix Fixed ejs (npm): 2.5.5
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | ejs (npm) | before 2.5.5 | 2.5.5 | Patch available | GHSA-3w5v-p54c-f74x |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- ejs (npm) Vendor— Affected before 2.5.5 Fixed in 2.5.5 Patch available GHSA-3w5v-p54c-f74x
Remediation
- Fix · GHSA-3w5v-p54c-f74x ejs (npm) Fixed in 2.5.5 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2017-1000228
- 2026-10-03 Alias added: GHSA-3w5v-p54c-f74x
References
More Ejs vulnerabilities
- TI-2023-14035 ejs v3.1.9 is vulnerable to server-side template injection. CVSS 3.1CRITICAL 9.8
- TI-2022-11633 The ejs (aka Embedded JavaScript templates) package 3.1.6 for Node.js allows server-side… CVSS 3.1CRITICAL 9.8
- TI-2017-14510 nodejs ejs version older than 2.5.5 is vulnerable to a denial-of-service due to weak… CVSS 3.0HIGH 7.5
- TI-2017-14509 nodejs ejs version older than 2.5.5 is vulnerable to a Cross-site-scripting in the… CVSS 3.0MEDIUM 6.1
Sources
- CVE-2017-1000228 · CVE Program
- CVE-2017-1000228 · NVD
- FIRST EPSS
- GHSA-3w5v-p54c-f74x · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences