Denial of servicein path-to-regexp.
No public exploit found; not on exploited lists.
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.
- Upgrade path-to-regexp to 0.1.13 or later.
- Upgrade path-to-regexp (npm) to 0.1.13 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 25 Mar 2026CVE ID reserved by openjs.
- 26 Mar 2026Published in the CVE List.
- 26 Mar 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other path-to-regexp vulnerabilities
Same weakness: Regular expression denial of service
Patchminder. CVE-2026-4867: Denial of service in path-to-regexp. https://patchminder.com/cve/cve-2026-4867/ (accessed 5 December 2026).