All CVEs / Semver-regex Project
CVE-2021-43307Semver-regex Project Semver-regex
High 7.5 No auth needed
Follow: this CVE · Semver-regex Project · Semver-regex Project Semver-regex We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.6% probability of exploitation in 30 days · percentile 76
- Auth required
- No
- Published
- Jun 2, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1333
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the semver-regex npm package, when an attacker is able to supply arbitrary input to the test() method
What to do
- Apply the vendor's security update for Semver-regex.
- 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-regex |
< 3.1.4 |
3.1.4 |
npm install semver-regex@3.1.4 |
| npm | semver-regex |
≥ 4.0.0 < 4.0.3 |
4.0.3 |
npm install semver-regex@4.0.3 |
Per OSV / GitHub Advisories (GHSA-4x5v-gmq8-25ch). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| semver-regex_project | semver-regex | < 3.1.4 |
| semver-regex_project | semver-regex | ≥ 4.0.0 < 4.0.3 |
Official sources
References
Links published by the sources. Open them with care.
- research.jfrog.com Exploit Third Party Advisory