Every CVE Search/ Get API key

CVE-2021-3795

Inefficient Regular Expression Complexity in sindresorhus/semver-regex

7.5 HighFix available

semver-regex is vulnerable to Inefficient Regular Expression Complexity

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

1.52%Up 0.9 points since Sep 16, 2021
90%50%10%1%

What each source reports

CVE List Score used 7.5

Inefficient Regular Expression Complexity in sindresorhus/semver-regex

semver-regex is vulnerable to Inefficient Regular Expression Complexity

Record
CVE-2021-3795
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-1333
Updated
2026-11-02
EUVDEUVD-2021-1966 7.5

semver-regex is vulnerable to Inefficient Regular Expression Complexity

Record
EUVD-2021-1966
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-03
GitHub AdvisoriesGHSA-44c6-4v22-4mhx 7.5

semver-regex Regular Expression Denial of Service (ReDOS)

npm semver-regex is vulnerable to Inefficient Regular Expression Complexity

Record
GHSA-44c6-4v22-4mhx
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-400, CWE-1333
Updated
2026-11-02
NVD 7.5

semver-regex is vulnerable to Inefficient Regular Expression Complexity

Record
CVE-2021-3795
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 3.0
7.5 HighCVSS:3.0/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

semver-regex is vulnerable to Inefficient Regular Expression Complexity

Record
CVE-2021-3795
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
OSVGHSA-44c6-4v22-4mhx 7.5

semver-regex Regular Expression Denial of Service (ReDOS)

npm semver-regex is vulnerable to Inefficient Regular Expression Complexity

Record
GHSA-44c6-4v22-4mhx
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-1333, CWE-400
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
OSVROOT-APP-NPM-CVE-2021-3795 No score

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

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

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

Affected products

Affected packages

Affected packages
PackageAffectedFixed
semver-regex
npm
before 3.1.3
3.1.3
semver-regex
npm
4.0.0 to 4.0.0
4.0.1
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
npm
4.0.0 up to 4.0.1
4.0.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
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

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

In short

CVE-2021-3795 is a high vulnerability (CVSS 7.5) in Semver-regex Project Semver-regex, published September 15, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.52%, the 74th percentile. Fixed in semver-regex 3.1.3.

References

MoveEnter Open