Skip to main content

Path To Regexp CVE-2026-4926

| EUVDEUVD-2026-16324 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-03-26 openjs GHSA-j3q9-mxjg-w52f
7.5
CVSS 3.1 · Vendor: openjs
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft route pattern with multiple sequential optional groups
  2. Exploit
    Trigger exponential regex generation
  3. Execution
    Exhaust CPU resources
  4. Impact
    Cause denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Remote unauthenticated attacker can trigger DoS by defining route patterns with multiple sequential optional groups (curly brace syntax like {a}{b}{c}:z) in affected application versions before 8.4.0. No user interaction required. Requires ability to define or influence route patterns.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) indicates this vulnerability is remotely exploitable without authentication or user interaction, with low attack complexity and high availability impact, yielding a score of 7.5. The availability-only impact (A:H) with no confidentiality or integrity consequences positions this as a service disruption threat rather than data breach risk. Real-world exploitation depends heavily on application architecture: systems that accept user-controlled input for route pattern definition face immediate risk, while applications with static, developer-defined routes have minimal exposure. No EPSS score, KEV listing, or public proof-of-concept was provided in the intelligence data, suggesting this has not yet been widely targeted. Given the narrow exploitation window (requires user-controlled route patterns, which is uncommon in production deployments) and availability of patches, this represents a moderate priority for systems running affected versions with dynamic routing, but low urgency for typical static-route implementations.

Exploit ScenarioDerived

An attacker identifies a Node.js application using vulnerable path-to-regexp versions that accepts route pattern definitions through an API or configuration endpoint. The attacker submits a crafted route pattern containing numerous sequential optional groups such as {a}{b}{c}{d}{e}{f}{g}{h}:endpoint, causing the library to generate an exponentially complex regular expression. When the application attempts to compile or match against this pattern, CPU utilization spikes to 100% and the event loop blocks, rendering the application unresponsive to legitimate requests and achieving denial of service without requiring authentication.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 26, 2026

The path-to-regexp library versions 8.0.0 through 8.3.0 suffer from catastrophic regular expression denial of service via exponential regex generation when route patterns contain multiple sequential optional groups in curly-brace syntax. Remote unauthenticated attackers can trigger resource exhaustion by submitting crafted route patterns, causing application-level denial of service with CVSS 7.5 (High severity). No public exploit identified at time of analysis, and the vendor has released version 8.4.0 to address the issue.

RemediationAI

Upgrade path-to-regexp to version 8.4.0 or later, which contains the vendor-released patch addressing the exponential regex generation issue. Organizations should review the OpenJS Foundation security advisory at https://cna.openjsf.org/security-advisories.html for complete upgrade guidance. As an interim mitigation until patching is completed, implement input validation to limit the number of sequential optional groups in route patterns and enforce strict controls preventing user-supplied data from being used as route pattern definitions. Applications using static route configurations defined at development time require less urgent remediation compared to systems dynamically generating routes from external input.

Affected VersionsENISA

path-to-regexp 8.0.0 <8.4.0

Affected Packages

npm path-to-regexp fix: 8.4.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The path-to-regexp library, a widely-used JavaScript routing utility that converts path strings into regular expressions (affected product: cpe:2.3:a:path-to-regexp:path-to-regexp), contains a flaw rooted in CWE-400 (Uncontrolled Resource Consumption). When processing route patterns with multiple consecutive optional groups using curly-brace syntax such as {a}{b}{c}:z, the library generates regular expressions that grow exponentially in complexity with each additional group. This algorithmic inefficiency creates a classic Regular Expression Denial of Service (ReDoS) condition where pattern-matching operations consume excessive CPU cycles, potentially blocking the event loop in Node.js applications or causing significant performance degradation in environments where the library processes route definitions.

Know when Path To Regexp gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (openjs) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Red Hat 7.5 HIGH

Primary rating from Vendor (openjs).

CVSS VectorVendor: openjs

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 26, 2026 - 18:59 nvd
HIGH 7.5

DescriptionCVE.org

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 32 npm packages depend on path-to-regexp (12 direct, 20 indirect)

Ecosystem-wide dependent count for version 8.0.0.

Executive ViewAI

Why It Matters

The path-to-regexp library (versions 8.0.0-8.3.0) contains a denial-of-service vulnerability that allows unauthenticated remote attackers to exhaust application resources through maliciously crafted route patterns, potentially disrupting web services that depend on this widely-used routing component. Organizations using affected versions face application downtime and service unavailability risks without mitigation.

Business Impact: High
Compensating Controls

Implement Web Application Firewall (WAF) rules to detect and block requests containing multiple sequential optional groups in curly-brace route syntax; apply network-level rate limiting on route pattern submissions; disable or restrict public-facing route configuration endpoints if feasible; monitor application resource utilization (CPU, memory) for anomalous spikes indicative of ReDoS attacks. These mitigations reduce but do not eliminate risk; patch deployment is required for full remediation.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

Debian

node-path-to-regexp
Release Status Fixed Version Urgency
bullseye vulnerable 6.2.0-1 -
bookworm vulnerable 6.2.1-1 -
trixie vulnerable 6.3.0-1 -
forky, sid vulnerable 8.3.0-1 -
(unstable) fixed (unfixed) -

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy