CVE-2024-45296: Node path to regexp · path-to-regexp turns path strings into a regular expressions
Affects node-path-to-regexpSource GCVE Database
Not known to be exploited · CVSS 7.5 High · fixed in 1.0.1-1ubuntu0.16.04.1~esm1 : patch node-path-to-regexp soon.
Data as of 24 Nov 2026, 21:14 UTC
- EPSS
- 0.9% chance of exploitation in 30 days – higher than 61% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.0.1-1ubuntu0.16.04.1~esm1, 1.0.1-1ubuntu0.18.04.1~esm1, 6.1.0-2ubuntu0.1~esm1 +2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 9 Sep 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10node-expresspkg:deb/ubuntu/node-express?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSnode-expresspkg:deb/ubuntu/node-express?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10node-expresspkg:deb/ubuntu/node-express?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu Pro 24.04 LTSnode-path-to-regexppkg:deb/ubuntu/node-path-to-regexp?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in
|
Ubuntu Pro 22.04 LTSnode-path-to-regexppkg:deb/ubuntu/node-path-to-regexp?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 20.04 LTSnode-path-to-regexppkg:deb/ubuntu/node-path-to-regexp?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2024-45296 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-45296 (opens in a new tab)
- github.com/pillarjs/path-to-regexp/security/advisories/GHSA-9wv6-86v2-598j (opens in a new tab)
- github.com/pillarjs/path-to-regexp/commit/29b96b4a1de52824e1ca0f49a701183cc4ed476f (opens in a new tab)
- github.com/pillarjs/path-to-regexp/commit/60f2121e9b66b7b622cc01080df0aabda9eedee6 (opens in a new tab)