CVE-2024-45296 in Block products
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 D...
Affects 1 product from 4 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Block | — | — |
| Javascript | — | — |
| Pillarjs | Path-To-Regexp | < 0.1.0 ≥ 0.2.0, < 8.0.0 |
| Segment | — | — |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-45296 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-213236-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2024-09-09 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-1333: CWE-1333
Related attack patterns (CAPEC)
CAPEC-492 Regular Expression Exponential Blowup via CWE-1333
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2024-45296 affects path-to-regexp, a library that converts path strings into regular expressions. In specific scenarios, it can generate inefficient regular expressions leading to Denial of Service (DoS) by blocking the JavaScript event loop.
The vulnerability arises when path-to-regexp generates a regular expression with two parameters, which can lead to excessive CPU usage and blocking of the JavaScript event loop, causing a DoS condition.
Questions
What is CVE-2024-45296?
CVE-2024-45296 affects path-to-regexp, a library that converts path strings into regular expressions. In specific scenarios, it can generate inefficient regular expressions leading to Denial of Service (DoS) by blocking the JavaScript event loop.
What is the CVSS score for CVE-2024-45296?
CVE-2024-45296 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. EPSS: 1.4%.
Is CVE-2024-45296 actively exploited?
No confirmed active exploitation of CVE-2024-45296 as of 2026-09-25.
How do I remediate CVE-2024-45296?
Priority: HIGH.
What systems are affected by CVE-2024-45296?
CVE-2024-45296 affects Block; Javascript; Pillarjs Path-To-Regexp; Segment.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Block","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.