npm package
semver 4.2.2 vulnerabilities, and the version that fixes all of them
semver 4.2.2 has 2 known vulnerabilities (2 rated high or critical); 5.7.2 fixes all of them.
npm (opens in a new tab) describes it as “The semantic version parser used by npm.”
- Known vulnerabilities
- 2
- 2 rated high or critical
- Released
- Feb 10, 2015
- Latest is 7.8.5
- Downloads last week
- 326
- Under 1% of semver downloads
- Licence
- ISC
- Dependencies
- None
- Resolved by deps.dev
What to upgrade to
5.7.2 is the closest release with no known vulnerabilities.
Newest 4.x release. Released Jun 1, 2015.
1 known vulnerability, worst rated warning5.7.2Upgrade to this
Fixes all 2 known vulnerabilities. Released Jul 10, 2023.
No known vulnerabilitiesLatest release. Released Jun 19, 2026.
No known vulnerabilities
Hand the fix to your coding agent
One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.
Findings
- CriticalVulnerability
2 known vulnerabilities in semver 4.2.2
EPSS: top 7%2 rated high or critical. Most serious: CVE-2015-8855, Regular Expression Denial of Service in semver. Upgrading to 5.7.2 fixes all of them.
- WarningOutdated
semver 4.2.2 is 3 major versions behind
Latest release is 7.8.5.
- LowOpenSSF Scorecard
isaacs/node-semver scores 3/10 on OpenSSF Scorecard
Weakest checks: Not actively maintained (Maintained 0/10); Little code review (Code-Review 0/10); No branch protection (Branch-Protection 0/10). A low score means weaker upstream security practices, not a known vulnerability.
Every advisory for semver 4.2.2
Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.
CriticalCVE-2015-8855 on OSV.dev (opens in a new tab)GHSA-x6fg-f45m-jf5qEPSS: top 7%
Regular Expression Denial of Service in semver
Fixed in 4.3.2. Published Oct 24, 2017.
CriticalCVE-2022-25883 on OSV.dev (opens in a new tab)GHSA-c2qf-rxjj-qqgwEPSS: top 14%
semver vulnerable to Regular Expression Denial of Service
Fixed in 5.7.2. Published Jun 21, 2023.
Who is still on a vulnerable semver
6% of last week’s 873.2M semver 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.
Is semver the only one?
Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task. Free, no sign-up.
How this page is checked
StackPrism asks OSV.dev which advisories affect exactly semver 4.2.2, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.
Last checked against npm, OSV.dev, deps.dev, CISA KEV and FIRST EPSS.