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?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

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.5

Details

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

ejs security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.