ADVISORIES

Vulnerability

CVE-2024-45296

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.

120 advisories report this vulnerability, across 8 ecosystems.

Advisories in npm

  • GHSA-37ch-88jc-xwx2

    path-to-regexp vulnerable to Regular Expression Denial of Service via multiple route parameters

    High CVE-2024-45296CVE-2026-4867 npm Updated 10 September 2026
  • GHSA-9wv6-86v2-598j

    path-to-regexp outputs backtracking regular expressions

    High CVE-2024-45296CVE-2026-4867 npm Updated 10 September 2026

References