Skip to content
Fencer Vulns
critical 9.8

CVE-2017-1000228 json

ejs is vulnerable to remote code execution due to weak input validation

published 2017-11-17 8 y ago modified 2026-06-17 4 mo ago also GHSA-3w5v-p54c-f74x , EUVD-2017-0340

cvss
9.8
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
6.4%
EPSS 6.4% chance of exploitation in 30 days, percentile 93%
public exploits
0
none known

Summary

nodejs ejs versions older than 2.5.3 is vulnerable to remote code execution due to weak input validation in ejs.renderFile() function

Patch / fix

  • npm ejs 2.5.5
  • ejs ejs 2.5.3
  • node-ejs Debian 14, Debian 13, Debian 12 2.5.7-1

debian advisories DEBIAN-CVE-2017-1000228

Exploit prediction

6.38% chance of exploitation in the next 30 days, higher than 93% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • snyk.io https://snyk.io/vuln/npm:ejs:20161128 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.0 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 10.0 AV:N/AC:L/Au:N/C:C/I:C/A:C
GitHub 3.0 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
npm ejs
<2.5.5
2.5.5

Classification

Weakness
  • CWE-20 Improper Input Validation

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.