Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-4867
March 26, 2026
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.
Affected Packages
path-to-regexp (NPM):
Affected version(s) >=0.0.1 <0.1.13
Fix Suggestion:
Update to version 0.1.13
path-to-regexp (NPM):
Affected version(s) >=0.0.1 <0.1.13
Fix Suggestion:
Update to version 0.1.13
path-to-regexp (NPM):
Affected version(s) >=0.0.1 <0.1.13
Fix Suggestion:
Update to version 0.1.13
path-to-regexp (NPM):
Affected version(s) >=0.0.1 <0.1.13
Fix Suggestion:
Update to version 0.1.13
path-to-regexp (NPM):
Affected version(s) >=0.0.1 <0.1.13
Fix Suggestion:
Update to version 0.1.13
path-to-regexp (NPM):
Affected version(s) >=0.0.1 <0.1.13
Fix Suggestion:
Update to version 0.1.13
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Inefficient Regular Expression Complexity
EPSS
Base Score:
0.04