Live threats

All CVEs / Npmjs

CVE-2022-25883Npmjs Semver

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
2.4%
probability of exploitation in 30 days · percentile 84
Auth required
No
Published
Jun 21, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

Versions of the package semver before 7.5.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range, when untrusted user data is provided as a range.

Original NVD text.

What to do

  1. Apply the vendor's security update for Semver.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm semver ≥ 7.0.0 < 7.5.2 7.5.2 npm install semver@7.5.2
npm semver ≥ 6.0.0 < 6.3.1 6.3.1 npm install semver@6.3.1
npm semver ≥ 2.0.0-alpha < 5.7.2 5.7.2 npm install semver@5.7.2

Per OSV / GitHub Advisories (GHSA-c2qf-rxjj-qqgw). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
npmjssemver< 5.7.2
npmjssemver≥ 6.0.0 < 6.3.1
npmjssemver≥ 7.0.0 < 7.5.3

Official sources

References

Links published by the sources. Open them with care.