CVE-2024-45296pillarjs path-to-regexp
High 7.5 No auth needed
Follow: this CVE · pillarjs · pillarjs path-to-regexp We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 73
- Auth required
- No
- Published
- Sep 9, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1333
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for path-to-regexp.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | path-to-regexp |
< 0.1.13 |
0.1.13 |
npm install path-to-regexp@0.1.13 |
| npm | path-to-regexp |
≥ 0.2.0 < 1.9.0 |
1.9.0 |
npm install path-to-regexp@1.9.0 |
| npm | path-to-regexp |
< 0.1.10 |
0.1.10 |
npm install path-to-regexp@0.1.10 |
| npm | path-to-regexp |
≥ 7.0.0 < 8.0.0 |
8.0.0 |
npm install path-to-regexp@8.0.0 |
| npm | path-to-regexp |
≥ 2.0.0 < 3.3.0 |
3.3.0 |
npm install path-to-regexp@3.3.0 |
| npm | path-to-regexp |
≥ 4.0.0 < 6.3.0 |
6.3.0 |
npm install path-to-regexp@6.3.0 |
Per OSV / GitHub Advisories (GHSA-37ch-88jc-xwx2, GHSA-9wv6-86v2-598j). Check the version in your lockfile before upgrading.
Affected products
- pillarjs · path-to-regexp
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.