Exponential ReDoS in semver-regex
Priority LOW 36CWE-1333Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-1333.
Summary
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
Why it matters now
EPSS 0.01558 75th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed semver-regex (semver-regex): 3.1.4semver-regex (npm): 3.1.4, 4.0.3
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| semver-regex | semver-regex | before 3.1.4 | 3.1.4 | Patch available | CNA |
| — | semver-regex (npm) | before 3.1.4 | 3.1.4 | Patch available | GHSA-4x5v-gmq8-25ch |
| — | semver-regex (npm) | 4.0.0 to before 4.0.3 | 4.0.3 | Patch available | GHSA-4x5v-gmq8-25ch |
- semver-regex Vendorsemver-regex Affected before 3.1.4 Fixed in 3.1.4 Patch available CNA
- semver-regex (npm) Vendor— Affected before 3.1.4 Fixed in 3.1.4 Patch available GHSA-4x5v-gmq8-25ch
- semver-regex (npm) Vendor— Affected 4.0.0 to before 4.0.3 Fixed in 4.0.3 Patch available GHSA-4x5v-gmq8-25ch
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:semver-regex_project:semver-regex:*:*:*:*:*:*:*:* | before 3.1.4; 4.0.0 to before 4.0.3 | Vulnerable | Semver-regex Project |
- cpe:2.3:a:semver-regex_project:semver-regex:*:*:*:*:*:*:*:* Versions before 3.1.4; 4.0.0 to before 4.0.3 Vulnerable ·Semver-regex Project
Remediation
- Fix · CNA semver-regex (semver-regex) Fixed in 3.1.4
- Fix · GHSA-4x5v-gmq8-25ch semver-regex (npm) Fixed in 3.1.4 Advisory →
- Fix · GHSA-4x5v-gmq8-25ch semver-regex (npm) Fixed in 4.0.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-43307
- 2026-10-03 Alias added: GHSA-4x5v-gmq8-25ch
References
More Semver-regex Project Semver-regex vulnerabilities
- TI-2021-02726 Inefficient Regular Expression Complexity in sindresorhus/semver-regex CVSS 3.1HIGH 7.5
Sources
- CVE-2021-43307 · CVE Program
- CVE-2021-43307 · NVD
- FIRST EPSS
- GHSA-4x5v-gmq8-25ch · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences