🛡️ CVE-2021-43307 — semver-regex
Description
Regular expression denial of service in semver-regex
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
Weakness class
CVE-2021-43307 is classified as CWE-1333: Inefficient Regular Expression Complexity. A regular expression backtracks catastrophically on crafted input, consuming CPU out of proportion to input size.
Affected software
CVE-2021-43307 is recorded against 1 package.
- semver-regex
Timeline and source
Published on 3 June 2022 and last revised on 4 February 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Package)
research.jfrog.com (Web)
CVE-2021-43307 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| semver-regex | — | — |
References
Similar Threats
- High ROOT-APP-NPM-CVE-2021-3795
- High ROOT-APP-NPM-CVE-2021-43307
- High CVE-2021-3795
More CVE 2021 advisories
Browse all of CVE 2021 in the advisory index.
Free Vulnerability Check
Is your site affected by CVE-2021-43307?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against CVE-2021-43307 and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.