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

Is your project affected?

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

Fixed within 3.1.x, affecting earlier releases

  • MediumCVE-2024-33883GHSA-ghr5-ch3p-vcr628 Apr 2024

    ejs lacks certain pollution protection

    Affected
    <3.1.10
    Fixed in
    3.1.10
  • CriticalCVE-2022-29078GHSA-phwq-j96m-2c2q26 Apr 2022

    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.