CVE-2021-43307: An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the semver-regex npm package,
CVE-2021-43307 is a medium-severity flaw (CVSS 5.9) affecting semver-regex. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 this priority
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.9 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 1.6% (top 25%) |
| CISA exploited list | No |
| Weakness | CWE-1333 |
| Published | 2022-06-02 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-43307?
semver-regex: upgrade to 3.1.4, 4.0.3. Exact commands for each OS are on this page.
Is CVE-2021-43307 being exploited?
CVE-2021-43307 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-43307 affect?
CVE-2021-43307 affects semver-regex. Severity is medium (CVSS 5.9). 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
How urgent is CVE-2021-43307?
Priority 49/100. Public exploit reference; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2021-3795 HIGH 7.5 UPGRADE semver-regex is vulnerable to Inefficient Regular Expression Complexity