Resource exhaustion in path-to-regexp - CVE-2026-4926
Published: November 9, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to cause denial of service in applications that accept user-controlled route patterns.
The vulnerability exists due to exponential growth in regular expressions generated by path-to-regexp when route patterns contain multiple sequential optional groups using curly brace syntax. An unauthenticated remote attacker can submit a route pattern containing many such groups to exhaust resources during regular expression generation.