CVE-2026-4926

published 26 Mar 2026 · updated 17 Sep 2026

path-to-regexp vulnerable to Denial of Service via sequential optional groups

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 8.4.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
path-to-regexp>=8.0.0 <8.4.08.4.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-4926 severity on Zeptric[![CVE-2026-4926](https://zeptric.io/badge/cve/CVE-2026-4926.svg)](https://zeptric.io/cve/CVE-2026-4926)