Home / pillarjs / path-to-regexp / CVE-2024-45296
CVE-2024-45296: is it exploited, and which versions of pillarjs path-to-regexp are affected and fixed?
CVE-2024-45296 is a regular expression denial of service (ReDoS) vulnerability in pillarjs path-to-regexp. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:38 UTC). Affected: path-to-regexp from 0.2.0 before 1.9.0, path-to-regexp before 0.1.10, path-to-regexp from 7.0.0 before 8.0.0 and 2 more (GitHub advisory GHSA-9wv6-86v2-598j). Fixed in 1.9.0, 0.1.10, 8.0.0, 3.3.0 and 1 more (GitHub advisory GHSA-9wv6-86v2-598j). Severity: High (7.5, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:38 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:26 UTC.
What is CVE-2024-45296?
path-to-regexp outputs backtracking regular expressions
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.
From the CVE record by GitHub_M, last updated January 24, 2025, 20:03 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| pillarjs | path-to-regexp | < 0.1.10 >= 0.2.0, < 8.0.0 |
As the CVE record by GitHub_M states it, last updated January 24, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | path-to-regexp | >= 0.2.0, < 1.9.0 | 1.9.0 | GHSA-9wv6-86v2-598j |
| npm | path-to-regexp | < 0.1.10 | 0.1.10 | GHSA-9wv6-86v2-598j |
| npm | path-to-regexp | >= 7.0.0, < 8.0.0 | 8.0.0 | GHSA-9wv6-86v2-598j |
| npm | path-to-regexp | >= 2.0.0, < 3.3.0 | 3.3.0 | GHSA-9wv6-86v2-598j |
| npm | path-to-regexp | >= 4.0.0, < 6.3.0 | 6.3.0 | GHSA-9wv6-86v2-598j |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated January 24, 2025. Summary: path-to-regexp outputs backtracking regular expressions.
How severe is CVE-2024-45296?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-45296 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, September 9, 2024)
- EPSS
- 0.93% probability of exploitation activity in the next 30 days, percentile 61.8 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-1333 Inefficient Regular Expression Complexity
Where are the vendor advisories and references?
- https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-9wv6-86v2-598j x_refsource_CONFIRM
- https://github.com/pillarjs/path-to-regexp/commit/29b96b4a1de52824e1ca0f49a701183cc4ed476f x_refsource_MISC
- https://github.com/pillarjs/path-to-regexp/commit/60f2121e9b66b7b622cc01080df0aabda9eedee6 x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20250124-0001/
When was it published, and where is the official record?
- Reserved
- August 26, 2024
- Published
- September 9, 2024, 19:07 UTC
- CVE record updated
- January 24, 2025, 20:03 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 07:53 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:26 UTC; KEV December 3, 2026, 10:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect path-to-regexp?
- Dec 5, 2024CVE-2024-52798 pillarjs path-to-regexp: regular expression denial of service (ReDoS)
Questions about CVE-2024-45296
Is CVE-2024-45296 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:38 UTC. FIRST's EPSS gives it a 0.93% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of pillarjs path-to-regexp are affected by CVE-2024-45296?
path-to-regexp from 0.2.0 before 1.9.0, path-to-regexp before 0.1.10, path-to-regexp from 7.0.0 before 8.0.0, path-to-regexp from 2.0.0 before 3.3.0 and path-to-regexp from 4.0.0 before 6.3.0, per the GitHub advisory GHSA-9wv6-86v2-598j. The tables above give every range the sources list.
Which version fixes CVE-2024-45296?
1.9.0, 0.1.10, 8.0.0, 3.3.0 and 6.3.0, per the GitHub advisory GHSA-9wv6-86v2-598j. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-45296?
High (7.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2024-45296?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.