semver vulnerable to Regular Expression Denial of Service
Versions of the package semver before 7.5.2 on the 7.x branch, before 6.3.1 on the 6.x branch, and all other versions before 5.7.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range, when untrusted user data is provided as a range.
Published:
6/21/2023
Modified:
9/10/2026
CVSS Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
External Link:
View on GitHub
Probability that this vulnerability will be exploited in the wild in the next 30 days
Current Exploitation Probability
0.32%
54.6th percentile
Low Risk
As of 10/5/2025
EPSS scores are updated daily and represent the probability (0-100%) that a CVE will be exploited in the next 30 days. Higher scores indicate higher risk.
Inefficient Regular Expression Complexity
Abstraction Level:
BaseDescription:
The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.
Likelihood of Exploit:
HighRelated Weaknesses: