CVE-2026-4926: Impact: A bad regular expression is generated any time you have multiple sequential optional groups (curly br
CVE-2026-4926 is a high-severity flaw (CVSS 7.5) affecting path-to-regexp. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Last updated 2026-09-09 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-4926?
path-to-regexp: upgrade to 8.4.0. Exact commands for each OS are on this page.
Is CVE-2026-4926 being exploited?
CVE-2026-4926 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-4926 affect?
CVE-2026-4926 affects path-to-regexp. Severity is high (CVSS 7.5). 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.
How urgent is CVE-2026-4926?
Priority 45/100. High severity; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2026-4923 MEDIUM 5.9 UPGRADE Impact: When using multiple wildcards, combined with at least one parameter, a regular expression can be gene
- CVE-2026-4867 HIGH 7.5 UPGRADE Impact: A bad regular expression is generated any time you have three or more parameters within a single segm