What’s Vulnerable › Vulnerabilities
CVE-2021-3795: Inefficient Regular Expression Complexity in sindresorhus/semver-regex
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-09-15 · updated 2026-06-17
- Weakness: CWE-1333
Description
semver-regex is vulnerable to Inefficient Regular Expression Complexity
Affected products
- semver-regex: before 3.1.3; 4.0.0 — fixed in 3.1.3
How to fix
Upgrade to a fixed version: semver-regex 3.1.3. Check the vendor advisory for mitigations.
References
- https://github.com/sindresorhus/semver-regex/commit/11c66245f4e1976dccc52977ed183696a21a3fd7
- https://huntr.dev/bounties/006624e3-35ac-448f-aab9-7b5183f30e28
- https://github.com/sindresorhus/semver-regex/commit/11c66245f4e1976dccc52977ed183696a21a3fd7
- https://huntr.dev/bounties/006624e3-35ac-448f-aab9-7b5183f30e28
Get alerted when CVE-2021-3795 or the next vulnerability affects your stack