CVE-2026-4867Regex Denial of Service in Path-to-regexp

Severity
7.5HIGHNVD
EPSS
0.1%
top 84.82%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMar 26
Latest updateMar 27

Description

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 [email protected] 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 [email protected]

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitability: 3.9 | Impact: 3.6

Affected Packages3 packages

debiandebian/node-path-to-regexp< node-path-to-regexp 1.0.1-1 (bookworm)
CVEListV5path-to-regexp/path-to-regexp< 0.1.13

🔴Vulnerability Details

3
OSV
path-to-regexp vulnerable to Regular Expression Denial of Service via multiple route parameters2026-03-27
GHSA
path-to-regexp vulnerable to Regular Expression Denial of Service via multiple route parameters2026-03-27
OSV
CVE-2026-4867: 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 a2026-03-26

📋Vendor Advisories

2
Red Hat
path-to-regexp: path-to-regexp: Denial of Service via catastrophic backtracking from malformed URL parameters2026-03-26
Debian
CVE-2026-4867: node-path-to-regexp - Impact: A bad regular expression is generated any time you have three or more p...2026

🕵️Threat Intelligence

1
Wiz
CVE-2026-4867 Impact, Exploitability, and Mitigation Steps | Wiz