What’s Vulnerable › Vulnerabilities
CVE-2021-43307: Exponential ReDoS in semver-regex
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.6% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-06-02 · updated 2026-06-17
- Weakness: CWE-1333
Description
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
Affected products
- semver-regex: before 3.1.4; from 4.0.0 before 4.0.3 — fixed in 3.1.4, 4.0.3
How to fix
Upgrade to a fixed version: semver-regex 3.1.4, 4.0.3. Check the vendor advisory for mitigations.
References
- https://research.jfrog.com/vulnerabilities/semver-regex-redos-xray-211349/
- https://research.jfrog.com/vulnerabilities/semver-regex-redos-xray-211349/
Get alerted when CVE-2021-43307 or the next vulnerability affects your stack