# CVE-2024-45296: node-path-to-regexp: path-to-regexp turns path strings into a regular expressions

CVE-2024-45296 is fixed in node-path-to-regexp on 1 platform, first by node-path-to-regexp 1.0.1-1ubuntu0.18.04.1~esm1, released September 9, 2024. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2024-45296
- Priority: High
- CVSS: 7.5 (high)
- EPSS: 0.0093
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Sep 9, 2024

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | node-path-to-regexp Debian 13.5 (trixie) | 6.3.0-1 | [DEBIAN-CVE-2024-45296](https://patchblox.com/security/data/fix/linux/debian-cve-2024-45296.md) | Sep 9, 2024 |
| Linux | node-path-to-regexp Debian 14 | 6.3.0-1 | [DEBIAN-CVE-2024-45296](https://patchblox.com/security/data/fix/linux/debian-cve-2024-45296.md) | Sep 9, 2024 |
| Linux | node-path-to-regexp Ubuntu 18.04.6 LTS (bionic) | 1.0.1-1ubuntu0.18.04.1~esm1 | [node-path-to-regexp 1.0.1-1ubuntu0.18.04.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-node-path-to-regexp-1.0.1-1ubuntu0.18.04.1-esm1.md) | Sep 9, 2024 |
| Linux | node-path-to-regexp Ubuntu 20.04 LTS (focal) | 6.1.0-2ubuntu0.1~esm1 | [node-path-to-regexp 6.1.0-2ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-node-path-to-regexp-6.1.0-2ubuntu0.1-esm1.md) | Sep 9, 2024 |
| Linux | node-path-to-regexp Ubuntu 22.04.1 LTS (jammy) | 6.2.0-2ubuntu0.1~esm1 | [node-path-to-regexp 6.2.0-2ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-node-path-to-regexp-6.2.0-2ubuntu0.1-esm1.md) | Sep 9, 2024 |
| Linux | node-path-to-regexp Ubuntu 24.04.5 LTS (noble) | 6.2.1-1ubuntu0.1~esm1 | [node-path-to-regexp 6.2.1-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-node-path-to-regexp-6.2.1-1ubuntu0.1-esm1.md) | Sep 9, 2024 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
