CVE-2021-3795

Inefficient Regular Expression Complexity in sindresorhus/semver-regex

HIGH
7.5
CVSS Score
Published: September 15, 2021 at 04:23 PM UTC
Updated: June 17, 2026 at 04:05 AM UTC
2 products affected across 2 vendorsSemver RegexRegex Project Semver Regex

Using sindresorhus/semver-regex by sindresorhus?

Get instant alerts when new vulnerabilities affect sindresorhus/semver-regex - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 2%

Description

semver-regex is vulnerable to Inefficient Regular Expression Complexity

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 3.1.34.0.0
Affected range stops below 3.1.3, so it looks safe — our inference, not a vendor statement
v < 3.1.3v < 4.0.1
Vendor states this is fixed in 3.1.3 (unaffected)
Affected range stops below 4.0.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-1333

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card