CVE-2022-25883Npmjs Semver
High 7.5 No auth needed
Follow: this CVE · Npmjs · Npmjs Semver We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Semver.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| npmjs | semver | < 5.7.2 |
| npmjs | semver | ≥ 6.0.0 < 6.3.1 |
| npmjs | semver | ≥ 7.0.0 < 7.5.3 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Broken Link
- github.com Broken Link
- github.com Broken Link
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- security.snyk.io Exploit Patch Third Party Advisory
- security.netapp.com Third Party Advisory