npm package
ejs vulnerabilities by version
The latest release, 7.0.1 (Oct 4, 2026), has no known vulnerabilities. 9% of last week’s 43.4M downloads went to versions with known vulnerabilities. OSV.dev lists 5 advisories for ejs; the newest was published on Apr 28, 2024.
npm (opens in a new tab) describes it as “Embedded JavaScript templates”
- Latest release
- 7.0.1
- Oct 4, 2026, no known vulnerabilities
- Downloads last week
- 43.4M
- All versions, from npm
- Advisories on OSV.dev
- 5
- Newest Apr 28, 2024
- Licence
- Apache-2.0
Most-downloaded versions last week
From npm’s per-version download counts for the last 7 days, each checked against OSV.dev. Open a version for its advisories and what to upgrade to.
Who is still on a vulnerable ejs
9% of last week’s 43.4M ejs downloads went to versions with known vulnerabilities.
From npm’s per-version download counts for the last 7 days, each version checked against OSV.dev. The versions checked cover over 99% of downloads.
Release lines
The newest release of each major line, from the registry. ejs doesn’t publish support dates we can check.
Newest advisories
The 5 most recently published, with the versions each one affects.
WarningCVE-2024-33883 on OSV.dev (opens in a new tab)GHSA-ghr5-ch3p-vcr6
ejs lacks certain pollution protection
Affects < 3.1.10. Published Apr 28, 2024.
CriticalCVE-2022-29078 on OSV.dev (opens in a new tab)GHSA-phwq-j96m-2c2q
ejs template injection vulnerability
Affects < 3.1.7. Published Apr 26, 2022.
CriticalCVE-2017-1000189 on OSV.dev (opens in a new tab)GHSA-6x77-rpqf-j6mw
ejs vulnerable to DoS due to weak input validation
Affects < 2.5.5. Published Mar 5, 2018.
CriticalCVE-2017-1000228 on OSV.dev (opens in a new tab)GHSA-3w5v-p54c-f74x
ejs is vulnerable to remote code execution due to weak input validation
Affects < 2.5.5. Published Nov 30, 2017.
WarningCVE-2017-1000188 on OSV.dev (opens in a new tab)GHSA-hwcf-pp87-7x6p
mde ejs vulnerable to XSS
Affects < 2.5.5. Published Nov 30, 2017.
Which ejs do you have?
Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task for your coding agent. Free, no sign-up.
How this page is checked
StackPrism reads every OSV.dev advisory for ejs, merges duplicates filed under several ids, and asks OSV.dev which ones affect each version listed. Releases and their dates come from deps.dev, downloads from npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.