🛡️ CVE-2021-43307 — semver-regex

🟢 CVSS 2.0 — Low ✅ No Known Exploit CWE-1333 OSV
2.0
CVSS Score
0 Low4 Medium7 High9 Critical10

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

Severity LOW
CVSS Score 2.0
CVSS Vector N/A
CWE CWE-1333
Public Exploit ✅ No
Source OSV
Published 2022-06-03
Updated 2026-08-12
Modified 2026-02-04
Fix URL N/A

Affected Packages

Software From version Fixed in
semver-regex

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.