Is ejs 3.1 vulnerable?
npm · 9 releases from 3.1.2 to 3.1.10 · latest ejs is 7.0.2 · checked 2 Nov 2026
No known advisories in the last release
ejs 3.1.10, the last 3.1 release, has no known advisories. 2 advisories affect earlier 3.1.x releases, so update to 3.1.10.
Update within 3.1:
npm install ejs@3.1.10Fixed within 3.1.x, affecting earlier releases
ejs lacks certain pollution protection
- Affected
- <3.1.10
- Fixed in
- 3.1.10
ejs template injection vulnerability
- Affected
- <3.1.7
- Fixed in
- 3.1.7
Which of your client projects are still on ejs 3.1?
NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact ejs version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.
Other ejs versions
Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the npm registry. Refreshed daily.