CriticalGHSA-3w5v-p54c-f74xCVE-2017-1000228
ejs is vulnerable to remote code execution due to weak input validation
Published 30 Nov 2017 · Updated 8 Nov 2023
Is your project on an affected ejs?
Look after several JavaScript apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
ejsnpm
- Affected
- <2.5.5
- Fixed in
- 2.5.5
Update to the fixed version for your release line, for example:
npm install ejs@2.5.5Details
nodejs ejs versions older than 2.5.3 is vulnerable to remote code execution due to weak input validation in ejs.renderFile() function
Is GHSA-3w5v-p54c-f74x in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected ejs, and gives you the command that fixes it.
More advisories for ejs
- MediumCVE-2024-33883ejs lacks certain pollution protection · 28 Apr 2024
- CriticalCVE-2022-29078ejs template injection vulnerability · 26 Apr 2022
- HighCVE-2017-1000189ejs vulnerable to DoS due to weak input validation · 5 Mar 2018
- MediumCVE-2017-1000188mde ejs vulnerable to XSS · 30 Nov 2017
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.