The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-4867

CVE-2026-4867: path-to-regexp DoS Vulnerability

CVE-2026-4867 is a denial of service vulnerability in path-to-regexp caused by catastrophic backtracking in regex patterns with three or more parameters. This article covers technical details, affected versions, and mitigation.

Published: March 27, 2026

CVE-2026-4867 Overview

A Regular Expression Denial of Service (ReDoS) vulnerability exists in the path-to-regexp library when generating regular expressions for route parameters. A bad regular expression is generated any time three or more parameters exist within a single segment, separated by something other than a period (.). For example, routes like /:a-:b-:c or /:a-:b-:c-:d are vulnerable. The backtrack protection added in path-to-regexp@0.1.12 only prevents ambiguity for two parameters. With three or more parameters, the generated lookahead does not block single separator characters, causing capture groups to overlap and trigger catastrophic backtracking.

Critical Impact

This vulnerability allows remote attackers to cause a Denial of Service condition by sending specially crafted URLs that trigger catastrophic regex backtracking, potentially rendering web applications unresponsive.

Affected Products

  • path-to-regexp versions prior to 0.1.13
  • Applications using vulnerable path-to-regexp versions with multi-parameter route segments
  • Express.js and other Node.js frameworks relying on affected path-to-regexp versions

Discovery Timeline

  • 2026-03-26 - CVE CVE-2026-4867 published to NVD
  • 2026-03-26 - Last updated in NVD database

Technical Details for CVE-2026-4867

Vulnerability Analysis

This vulnerability is classified under CWE-1333 (Inefficient Regular Expression Complexity), commonly known as Regular Expression Denial of Service (ReDoS). The root issue lies in how path-to-regexp generates regular expressions for URL routing patterns that contain three or more parameters within a single path segment.

When routes are defined with patterns like /:a-:b-:c, the library generates a regex where the capture groups can overlap. The backtrack protection mechanism introduced in version 0.1.12 was designed to handle ambiguity between parameters, but it only accounts for scenarios involving two parameters. When a third parameter is introduced, the lookahead assertions fail to properly block single separator characters, creating conditions where the regex engine enters catastrophic backtracking.

An attacker can exploit this by sending maliciously crafted URLs to endpoints using vulnerable route patterns. The regex engine will attempt exponentially increasing match combinations, consuming CPU resources and potentially causing the application to become unresponsive.

Root Cause

The vulnerability stems from inadequate lookahead assertions in the generated regular expressions. When path-to-regexp processes route patterns with three or more parameters separated by non-period characters, it fails to generate sufficiently restrictive lookahead patterns. This allows capture groups to match overlapping portions of the input string, leading to exponential time complexity during regex evaluation.

Attack Vector

The attack is network-accessible and requires no authentication or user interaction. An attacker can craft URLs with repeated separator characters or specific patterns that maximize backtracking iterations. The attack targets applications using vulnerable route definitions with three or more consecutive parameters in a single segment.

When a vulnerable application receives a crafted URL, the regex engine attempts to match the input against the poorly constructed pattern. Due to the overlapping capture groups, the engine explores an exponential number of match combinations before failing, consuming significant CPU time and potentially causing service degradation or complete unavailability.

Detection Methods for CVE-2026-4867

Indicators of Compromise

  • Unusual CPU spikes correlated with incoming HTTP requests
  • Application response time degradation, particularly for specific URL patterns
  • Increased request timeouts reported by load balancers or reverse proxies
  • Thread pool exhaustion in Node.js applications handling route matching

Detection Strategies

  • Monitor application performance metrics for sudden CPU utilization increases
  • Implement request timeout thresholds to detect slow regex evaluation
  • Audit codebase for route patterns matching the vulnerable signature (/:param1-:param2-:param3 format)
  • Use dependency scanning tools to identify vulnerable path-to-regexp versions in package-lock.json or yarn.lock

Monitoring Recommendations

  • Configure alerting for sustained high CPU usage on web server instances
  • Implement application performance monitoring (APM) to track route handler execution times
  • Set up log analysis for patterns of slow requests targeting specific URL paths
  • Deploy rate limiting on endpoints using complex route patterns as a defensive measure

How to Mitigate CVE-2026-4867

Immediate Actions Required

  • Upgrade to path-to-regexp@0.1.13 or later which contains the security patch
  • Audit application routes for patterns with three or more parameters separated by non-period characters
  • Implement request timeout limits to prevent single requests from consuming excessive resources
  • Consider enabling rate limiting on vulnerable endpoints while patches are being deployed

Patch Information

The vulnerability is fixed in path-to-regexp version 0.1.13. Upgrade by running:

bash
npm update path-to-regexp

Verify the installed version meets the minimum secure version:

bash
npm list path-to-regexp

For additional technical details, refer to the GitHub Security Advisory GHSA-9wv6-86v2-598j and the OpenJSF Security Advisories.

Workarounds

  • Provide custom regular expressions for parameters after the first in affected segments (e.g., change /:a-:b-:c to /:a-:b([^-/]+)-:c([^-/]+))
  • Ensure custom regex patterns do not match text before their corresponding parameter
  • Implement URL length limits to reduce the impact of malicious input
  • Use input validation middleware to reject suspiciously long or malformed URL segments
bash
# Configuration example - Nginx URL length limit
# Add to server or location block
large_client_header_buffers 4 8k;
client_header_buffer_size 1k;

# Alternative: Express.js middleware for URL length limiting
# Implement in application code to limit URL length to reasonable bounds

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPath To Regexp

  • SeverityHIGH

  • CVSS Score7.5

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-1333
  • Technical References
  • Blake Embery Web Redos Post

  • OpenJSF Security Advisories

  • GitHub Security Advisory GHSA-9wv6-86v2-598j
  • Related CVEs
  • CVE-2024-45296: path-to-regexp DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English