npm package

semver 4.2.0 vulnerabilities, and the version that fixes all of them

semver 4.2.0 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
Dec 23, 2014
Latest is 7.8.5
Downloads last week
229
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.

  • 4.3.6

    Newest 4.x release. Released Jun 1, 2015.

    1 known vulnerability, worst rated warning
  • 5.7.2Upgrade to this

    Fixes all 2 known vulnerabilities. Released Jul 10, 2023.

    No known vulnerabilities
  • 7.8.5

    Latest 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

Every advisory for semver 4.2.0

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.

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

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

Check your whole repo

How this page is checked

StackPrism asks OSV.dev which advisories affect exactly semver 4.2.0, 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.