Every CVE Search/ Get API key

CVE-2021-43307

Exponential ReDoS in semver-regex

5.9 MediumFix available

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

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

1.56%Up 0.7 points since Jun 2, 2022
90%50%10%1%

What each source reports

CVE List Score used 5.9

Exponential ReDoS 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

Record
CVE-2021-43307
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-1333
Updated
2026-11-02
EUVDEUVD-2022-5926 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

Record
EUVD-2022-5926
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-03
GitHub AdvisoriesGHSA-4x5v-gmq8-25ch No score

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

Record
GHSA-4x5v-gmq8-25ch
Weakness
CWE-1333
Updated
2026-11-02
NVD 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

Record
CVE-2021-43307
CVSS 3.1
5.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P
Weakness
CWE-1333
Updated
2026-11-02
OSV 7.5

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

Record
CVE-2021-43307
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVCLSA-2026-1791796134 No score

TuxCare security update for semver-regex (2 CVEs)

TuxCare rebuilt semver-regex to address 2 CVEs. Fixed in 2.0.0-tuxcare.1.

Record
CLSA-2026-1791796134
Updated
2026-11-02
OSVGHSA-4x5v-gmq8-25ch No score

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

Record
GHSA-4x5v-gmq8-25ch
Weakness
CWE-1333
Updated
2026-11-02
OSVROOT-APP-NPM-CVE-2021-43307 No score

CVE-2021-43307 in semver-regex - Patched by Root

Root has patched CVE-2021-43307 in the semver-regex package for Root:npm. Multiple fixed versions available.

Record
ROOT-APP-NPM-CVE-2021-43307
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
semver-regex
npm
before 3.1.4
3.1.4
semver-regex
npm
4.0.0 up to 4.0.3
4.0.3
semver-regex
TuxCare:npm
From an advisory covering 2 CVEs
2.0.0-tuxcare.0 up to 2.0.0-tuxcare.1, plus listed versions
2.0.0
2.0.0-tuxcare.1
semver-regex
Root:npm
before 2.0.0-aikido.2
2.0.0-aikido.2
@rootio/semver-regex
Root:npm
before 2.0.0-root.io.2
2.0.0-root.io.2

History

History
RecordedChangedSources
affected, facts
aliases, publishedEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-43307 is a medium vulnerability (CVSS 5.9) in Semver-regex, published June 1, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.56%, the 75th percentile. Fixed in semver-regex 3.1.4.

References

MoveEnter Open