Skip to main content

Path To Regexp EUVDEUVD-2026-16273

| CVE-2026-4867 HIGH
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2026-03-26 openjs GHSA-37ch-88jc-xwx2
7.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Craft route with three+ parameters separated by non-period
  2. Exploit
    Request URL matching vulnerable pattern
  3. Execution
    Trigger catastrophic backtracking in regex engine
  4. Impact
    Cause denial of service through CPU exhaustion

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V2 - Validation and Business Logic Regex complexity 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 catastrophic backtracking via HTTP requests to routes with three or more parameters in a single segment separated by non-period characters (e.g., /:a-:b-:c) in path-to-regexp versions prior to 0.1.13. Default configurations affected; custom regex patterns exempt.

Impact

The CVSS v3.1 score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) indicates a high-severity network-accessible denial of service requiring no authentication or user interaction. SSVC analysis confirms the attack is automatable with partial technical impact, though exploitation status is listed as none. The vulnerability presents genuine operational risk for public-facing applications using vulnerable versions, as attackers can trigger service degradation with minimal effort by sending malicious URLs. However, the impact is limited to availability without data compromise or system access. The targeted nature of the vulnerability (requiring specific multi-parameter route patterns) may reduce exposure in practice, though many routing implementations use such patterns. No active exploitation is documented (not in CISA KEV) and no public exploit is identified at time of analysis, suggesting lower immediate urgency compared to actively exploited vulnerabilities, but the automatable nature and low complexity warrant prioritization for internet-facing services.

Exploit ScenarioDerived

An unauthenticated remote attacker identifies an application using path-to-regexp with routes containing three or more parameters in a single segment (e.g., /api/:resource-:action-:id). The attacker crafts HTTP requests with URLs containing carefully constructed strings that maximize backtracking in the regex engine, such as long sequences of the separator character followed by the terminator. Multiple concurrent requests cause the server's CPU to spike as regex processing enters catastrophic backtracking, exhausting computational resources and rendering the application unresponsive to legitimate users.

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

Catastrophic backtracking in path-to-regexp versions prior to 0.1.13 enables remote denial of service attacks through specially crafted URLs containing three or more parameters within a single route segment separated by non-period characters. The vulnerability stems from insufficient backtrack protection in regex generation for routes like /:a-:b-:c, allowing unauthenticated attackers to trigger exponential computation times. SSVC framework confirms the vulnerability is automatable with partial technical impact, though no public exploit is identified at time of analysis.

RemediationAI

Upgrade path-to-regexp to version 0.1.13 or later, which includes proper backtrack protection for multi-parameter route segments (vendor-released patch: 0.1.13). Consult the OpenJS Foundation security advisory at https://cna.openjsf.org/security-advisories.html and GitHub advisory at https://github.com/advisories/GHSA-9wv6-86v2-598j for implementation guidance. For environments where immediate upgrade is not feasible, apply custom regular expressions to parameters after the first in multi-parameter segments, ensuring the custom regex does not match text before the parameter (e.g., change /:a-:b-:c to /:a-:b([^-/]+)-:c([^-/]+)). Routes using custom regex patterns in their definitions are not affected and require no changes. As an additional compensating control, implement URL length restrictions at the web server or application gateway level to limit potential backtracking depth. Detailed technical explanation and workaround examples are available at https://blakeembrey.com/posts/2024-09-web-redos.

Affected VersionsENISA

path-to-regexp 0 <0.1.13

Affected Packages

npm path-to-regexp fix: 0.1.10, 0.1.13, 1.9.0, 3.3.0, 6.3.0, 8.0.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 (CPE: cpe:2.3:a:path-to-regexp:path-to-regexp) is a widely-used JavaScript utility for converting path strings into regular expressions, commonly employed in routing frameworks like Express.js. This vulnerability represents CWE-1333 (Inefficient Regular Expression Complexity), specifically a Regular Expression Denial of Service (ReDoS) condition. The backtrack protection mechanism introduced in version 0.1.12 only safeguarded against ambiguity in two-parameter segments. When three or more parameters exist in a single segment (e.g., /:a-:b-:c-:d), the generated lookahead assertion fails to block single separator characters, causing capture groups to overlap and triggering catastrophic backtracking where regex engine execution time grows exponentially with input length.

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

NVD PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Red Hat 5.3 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

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 - 16:16 nvd
HIGH 7.5

DescriptionCVE.org

Impact:

A bad regular expression is generated any time you have three or more parameters within a single segment, separated by something that is not a period (.). For example, /:a-:b-:c or /:a-:b-:c-:d. The backtrack protection added in path-to-regexp@0.1.12 only prevents ambiguity for two parameters. With three or more, the generated lookahead does not block single separator characters, so capture groups overlap and cause catastrophic backtracking.

Patches:

Upgrade to path-to-regexp@0.1.13

Custom regex patterns in route definitions (e.g., /:a-:b([^-/]+)-:c([^-/]+)) are not affected because they override the default capture group.

Workarounds:

All versions can be patched by providing a custom regular expression for parameters after the first in a single segment. As long as the custom regular expression does not match the text before the parameter, you will be safe. For example, change /:a-:b-:c to /:a-:b([^-/]+)-:c([^-/]+).

If paths cannot be rewritten and versions cannot be upgraded, another alternative is to limit the URL length.

Executive ViewAI

Why It Matters

path-to-regexp versions prior to 0.1.13 contain a denial of service vulnerability affecting any application using this library for URL routing. Unauthenticated attackers can craft malicious URLs to exhaust server resources and disrupt service availability, with no patch currently available to remediate the risk.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: (1) Deploy Web Application Firewall rules to detect and block malformed multi-parameter route requests (e.g., URL patterns matching /:a-:b-:c syntax); (2) Implement strict request timeouts and connection limits to prevent resource exhaustion; (3) Apply network-level rate limiting on affected endpoints; (4) Consider disabling or restricting dynamic routing features until patch availability; (5) Monitor CPU and memory metrics for anomalous spikes indicating exploitation attempts.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Threat Intel
1
1 source
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub 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