path-to-regexp contains a ReDoS
The regular expression that is vulnerable to backtracking can be generated in versions before 0.1.12 of path-to-regexp, originally reported in CVE-2024-45296
Upgrade to 0.1.12.
Avoid using two parameters within a single path segment, when the separator is not . (e.g. no /:a-:b). Alternatively, you can define the regex used for both parameters and ensure they do not overlap to allow backtracking.
Published:
12/5/2024
Modified:
6/3/2025
CVSS Vector:
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P
External Link:
View on GitHub
Probability that this vulnerability will be exploited in the wild in the next 30 days
Current Exploitation Probability
0.09%
25.8th 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: