CVE-2026-4926: path-to-regexp vulnerable to Denial of Service via sequential optional groups
Impact:
A bad regular expression is generated any time you have multiple sequential optional groups (curly brace syntax), such as `{a}{b}{c}:z`. The generated regex grows exponentially with the number of groups, causing denial of service.
Patches:
Fixed in version 8.4.0.
Workarounds:
Limit the number of sequential optional groups in route patterns. Avoid passing user-controlled input as route patterns.
Security readout for executives and security teams
Plain-English summary
CVE-2026-4926 is a denial-of-service issue in path-to-regexp. Certain route patterns with repeated optional groups can produce a regular expression that grows exponentially, potentially consuming availability. It affects business services only where vulnerable versions and risky route patterns are present.
Executive priority
Prioritize remediation for internet-facing or high-availability services that use path-to-regexp. The issue is availability-focused, not data theft, but unauthenticated network-triggered denial of service can still create operational impact.
Technical view
path-to-regexp can generate pathological regular expressions from multiple sequential optional groups using curly brace syntax. The CVSS 3.1 score is 7.5, driven by network reachability, low attack complexity, no privileges, no user interaction, and high availability impact.
Likely exposure
Exposure is most likely in Node.js applications or downstream products using path-to-regexp 8.x before the stated 8.4.0 fix, especially where route patterns contain sequential optional groups or are built from user-controlled input.
Exploitation context
The bundle marks KEV as false and provides no cited evidence of active exploitation. The practical risk is availability loss when vulnerable pattern generation is reachable in application routing or dynamic route configuration paths.
Researcher notes
Relevant weaknesses are CWE-1333 and CWE-400. Validate exposure through dependency and route-pattern review, not exploit reproduction. The provided sources identify the cause and fixed version, but downstream product impact depends on each vendor advisory.
Mitigation direction
Upgrade path-to-regexp to version 8.4.0 or later where applicable.
Limit sequential optional groups in route patterns.
Do not pass user-controlled input as route patterns.
Review Red Hat advisories for downstream package status.
Check vendor guidance for product-specific remediation details.
Validation and detection
Inventory direct and transitive path-to-regexp usage.
Confirm deployed versions against the 8.4.0 fixed release.
Review route definitions for sequential optional curly-brace groups.
Verify no user-controlled data can define route patterns.
Track Red Hat CSAF or errata applicability for managed platforms.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-1333: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-1333 · source CWE mapping
Inefficient Regular Expression Complexity
Inefficient Regular Expression Complexity represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Uncontrolled Resource Consumption represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.