HIGHCVE-2026-4926Published Modified CNA openjs
CVE-2026-4926: path-to-regexp vulnerable to Denial of Service via sequential optional groups
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.
Metrics
- CVSS v3.1
- 7.5
- Severity
- HIGH
- Fixed in
- 8.4.0
- Affected Products
- 1
Fix available
8.4.0
Affected packages
- path-to-regexp / path-to-regexp< 8.4.0 (from 8.0.0)Fixed in 8.4.0
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences