CVE-2026-4926

NameCVE-2026-4926
DescriptionImpact: 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1132020

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
node-path-to-regexp (PTS)bullseye6.2.0-1vulnerable
bookworm6.2.1-1vulnerable
trixie6.3.0-1vulnerable
forky, sid8.3.0-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
node-path-to-regexpsource(unstable)8.4.0-11132020

Notes

https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-j3q9-mxjg-w52f

Search for package or bug name: Reporting problems