CVE-2024-45296

High

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductPath-to-regexp
PublishedSep 9, 2024
First seenSep 9, 2024
Weakness typeCWE-1333CWE-1333

How to fix

Update
  • path-to-regexp0.1.13, 1.9.0, 0.1.10, 8.0.0, 3.3.0, 6.3.0 or later

Affected products

ProductAffected versionsFixed in
path-to-regexpnpmv < 0.1.13, 0.2.0 ≤ v < 1.9.0, v < 0.1.10, 7.0.0 ≤ v < 8.0.0, 2.0.0 ≤ v < 3.3.0, 4.0.0 ≤ v < 6.3.00.1.13, 1.9.0, 0.1.10, 8.0.0, 3.3.0, 6.3.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.