{"id":"CVE-2017-1000228","aliases":["CLSA-2026-1774570929","DEBIAN-CVE-2017-1000228","EUVD-2017-0340","GHSA-3w5v-p54c-f74x"],"status":"published","title":"ejs is vulnerable to remote code execution due to weak input validation","description":"nodejs ejs versions older than 2.5.3 is vulnerable to remote code execution due to weak input validation in ejs.renderFile() function","severity":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.0638,"percentile":0.93709,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20"],"published":"2017-11-17T03:00:00Z","modified":"2026-10-24T10:30:29Z","fixes":[{"ecosystem":"npm","package":"ejs","fixed_in":["2.5.3","2.5.5"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"node-ejs","fixed_in":["2.5.7-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"node-ejs","fixed_in":["2.5.7-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"node-ejs","fixed_in":["2.5.7-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"ejs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.3"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"ejs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0-tuxcare.0"},{"fixed":"1.0.0-tuxcare.1"}]}],"versions":["1.0.0"],"bundled":5},{"source":"osv","ecosystem":"Debian:12","package":"node-ejs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.7-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"node-ejs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.7-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"node-ejs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.7-1"}]}]},{"source":"osv","ecosystem":"npm","package":"ejs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.5.5"}]}]}],"products":[{"vendor":"ejs","product":"ejs"}],"references":[{"url":"http://www.securityfocus.com/bid/101897","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://snyk.io/vuln/npm:ejs:20161128","tags":["x_refsource_MISC","x_transferred","Exploit","Technical Description","Third Party Advisory","evidence","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-1000228","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-3w5v-p54c-f74x","tags":["advisory"]},{"url":"https://web.archive.org/web/20171123041219/http://www.securityfocus.com/bid/101897","tags":["web"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-1000228","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2017-1000228","description":"nodejs ejs versions older than 2.5.3 is vulnerable to remote code execution due to weak input validation in ejs.renderFile() function","status":"published","published":"2017-11-17T03:00:00Z","modified":"2024-08-05T21:53:07.303Z","updated_at":"2026-11-02T14:33:20.843976Z"}],"euvd":[{"id":"EUVD-2017-0340","description":"nodejs ejs versions older than 2.5.3 is vulnerable to remote code execution due to weak input validation in ejs.renderFile() function","status":"published","published":"2017-11-17T03:00:00Z","modified":"2024-08-05T21:53:07Z","updated_at":"2026-11-03T02:23:03.593375Z"}],"ghsa":[{"id":"GHSA-3w5v-p54c-f74x","title":"ejs is vulnerable to remote code execution due to weak input validation","description":"nodejs ejs versions older than 2.5.3 is vulnerable to remote code execution due to weak input validation in `ejs.renderFile()` function","status":"published","published":"2017-11-30T23:15:19Z","modified":"2023-09-08T20:54:25Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:37:03.287418Z"}],"nvd":[{"id":"CVE-2017-1000228","description":"nodejs ejs versions older than 2.5.3 is vulnerable to remote code execution due to weak input validation in ejs.renderFile() function","status":"published","published":"2017-11-17T03:29:00.377Z","modified":"2026-06-17T00:58:56.62Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:04:08.635428Z"}],"osv":[{"id":"CVE-2017-1000228","description":"nodejs ejs versions older than 2.5.3 is vulnerable to remote code execution due to weak input validation in ejs.renderFile() function","status":"published","published":"2017-11-17T03:29:00.377Z","modified":"2026-10-24T10:30:29.495503032Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:03.851821Z"},{"id":"DEBIAN-CVE-2017-1000228","description":"nodejs ejs versions older than 2.5.3 is vulnerable to remote code execution due to weak input validation in ejs.renderFile() function","status":"published","published":"2017-11-17T03:29:00.377Z","modified":"2026-09-01T20:03:40.931131782Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:28.207321Z"},{"id":"GHSA-3w5v-p54c-f74x","title":"ejs is vulnerable to remote code execution due to weak input validation","description":"nodejs ejs versions older than 2.5.3 is vulnerable to remote code execution due to weak input validation in `ejs.renderFile()` function","status":"published","published":"2017-11-30T23:15:19Z","modified":"2023-11-08T03:58:44.472757Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T15:46:36.092962Z"},{"id":"CLSA-2026-1774570929","title":"TuxCare security update for ejs (5 CVEs)","description":"TuxCare rebuilt ejs to address 5 CVEs. Fixed in 1.0.0-tuxcare.1.","status":"published","published":"2026-08-04T14:52:15Z","modified":"2026-10-15T09:47:03.661053163Z","updated_at":"2026-11-02T15:43:43.621843Z"}]}}
