CVE-2024-45296
path-to-regexp outputs backtracking regular expressions
Also known as CVE-2026-4867, GHSA-37ch-88jc-xwx2, GHSA-9wv6-86v2-598j
Mitigation
- Upgrade path-to-regexp to one of 0.1.13, 1.9.0, 0.1.10, 8.0.0, 3.3.0, 6.3.0 (or later in the same release line).
Who should check
- Projects that depend on npm package path-to-regexp (< 0.1.13)
- Anyone running pillarjs path-to-regexp < 0.1.10; >= 0.2.0, < 8.0.0
Vulnerability facts
- Affected
- path-to-regexp < 0.1.13
- Fixed in
- 0.1.13, 1.9.0, 0.1.10, 8.0.0, 3.3.0, 6.3.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 1.40% chance of exploitation in 30 days (percentile 73, 2026-11-26)
- CWE
- CWE-1333
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm path-to-regexp | < 0.1.13 | 0.1.13, 1.9.0, 0.1.10, 8.0.0, 3.3.0, 6.3.0 | osv |
| pillarjs path-to-regexp | < 0.1.10; >= 0.2.0, < 8.0.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-45296. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-45296.md Affected: path-to-regexp < 0.1.13 Fixed in: 0.1.13, 1.9.0, 0.1.10, 8.0.0, 3.3.0, 6.3.0 Steps: 1. Search this machine and project for path-to-regexp (npm), pillarjs path-to-regexp: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-9wv6-86v2-598j
- https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-37ch-88jc-xwx2
- https://nvd.nist.gov/vuln/detail/CVE-2026-4867
- https://github.com/advisories/GHSA-9wv6-86v2-598j
- https://nvd.nist.gov/vuln/detail/CVE-2024-45296
Patches
- https://github.com/pillarjs/path-to-regexp/commit/29b96b4a1de52824e1ca0f49a701183cc4ed476f
- https://github.com/pillarjs/path-to-regexp/commit/60f2121e9b66b7b622cc01080df0aabda9eedee6
- https://github.com/pillarjs/path-to-regexp/commit/925ac8e3c5780b02f58cbd4e52f95da8ad2ac485
- https://github.com/pillarjs/path-to-regexp/commit/d31670ae8f6e69cbfd56e835742195b7d10942ef
- https://github.com/pillarjs/path-to-regexp/commit/f1253b47b347dcb909e3e80b0eb2649109e59894
Other
- https://security.netapp.com/advisory/ntap-20250124-0001/
- https://blakeembrey.com/posts/2024-09-web-redos
- https://cna.openjsf.org/security-advisories.html
- https://github.com/pillarjs/path-to-regexp
- https://github.com/pillarjs/path-to-regexp/releases/tag/v.0.1.13
- https://github.com/pillarjs/path-to-regexp/releases/tag/v6.3.0
- https://security.netapp.com/advisory/ntap-20250124-0001
FAQ
Is CVE-2024-45296 being exploited?
There is no confirmed exploitation: CVE-2024-45296 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.40% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-45296?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2024-45296?
path-to-regexp < 0.1.13.
Is there a fix for CVE-2024-45296?
Yes. Fixed in 0.1.13, 1.9.0, 0.1.10, 8.0.0, 3.3.0, 6.3.0. Upgrade path-to-regexp to one of 0.1.13, 1.9.0, 0.1.10, 8.0.0, 3.3.0, 6.3.0 (or later in the same release line).
How do I check if I'm affected by CVE-2024-45296?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.