Skip to main content
← All vulnerabilities
CVE-2026-4926GHSA-J3Q9-MXJG-W52F

path-to-regexp vulnerable to Denial of Service via sequential optional groups

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 8.4.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • path-to-regexp path-to-regexp

    From 8.0.0 · fixed in 8.4.0

  • path-to-regexpnpm

    From 8.0.0 · fixed in 8.4.0

References 1

cna.openjsf.org