Vulnerabilities

CVE-2024-45296

High 7.5 CVSS 3.1

Description

path-to-regexp turns path strings into a regular expressions. In certain cases, path-to-regexp will output a regular expression that can be exploited to cause poor performance. Because JavaScript is single threaded and regex matching runs on the main thread, poor performance will block the event loop and lead to a DoS. The bad regular expression is generated any time you have two parameters within a single segment, separated by something that is not a period (.). For users of 0.1, upgrade to 0.1.10. All other users should upgrade to 8.0.0.

Description as published by the source, in English.

Key facts

Published
2024-09-09
Last modified
2026-06-17
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Scored by
security-advisories@github.com
Probability of exploitation
0.9 % higher than 57 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
path-to-regexp (npm) < 0.1.10 Affected
path-to-regexp (npm) < 0.1.13 Affected
path-to-regexp (npm) ≥ 0.2.0, < 1.9.0 Affected
path-to-regexp (npm) ≥ 2.0.0, < 3.3.0 Affected
path-to-regexp (npm) ≥ 4.0.0, < 6.3.0 Affected
path-to-regexp (npm) ≥ 7.0.0, < 8.0.0 Affected

Weakness type

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities