CVE-2026-4926
HIGH 7.5CVSS 3.1path-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.
- Published
- 26 Mar 2026
- Last modified
- 10 Sep 2026
- Assigned by
- ce714d77-add3-4f53-aff5-83d477b104bb
- NVD status
- Modified
- Weakness
- CWE-1333CWE-400
- Also known as
- GHSA-j3q9-mxjg-w52f
- Sources
- NVDJSONOSV GHSA-j3q9-mxjg-w52fJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | ce714d77-add3-4f53-aff5-83d477b104bb (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pillarjs | path-to-regexpcpe:2.3:a:pillarjs:path-to-regexp:*:*:*:*:*:node.js:*:* |
>= 8.0.0, < 8.4.0 | 8.4.0 |
| OSV | npm | path-to-regexp | >= 8.0.0, < 8.4.0 | 8.4.0 |
References
- https://cna.openjsf.org/security-advisories.html · Third Party Advisory, WEB
- https://access.redhat.com/errata/RHSA-2026:10153
- https://access.redhat.com/errata/RHSA-2026:10172
- https://access.redhat.com/errata/RHSA-2026:10175
- https://access.redhat.com/errata/RHSA-2026:13545
- https://access.redhat.com/errata/RHSA-2026:13826
- https://access.redhat.com/errata/RHSA-2026:17789
- https://access.redhat.com/errata/RHSA-2026:19409
- https://access.redhat.com/errata/RHSA-2026:19410
- https://access.redhat.com/errata/RHSA-2026:24761
- https://access.redhat.com/errata/RHSA-2026:24762
- https://access.redhat.com/errata/RHSA-2026:24866
- https://access.redhat.com/errata/RHSA-2026:36651
- https://access.redhat.com/errata/RHSA-2026:40118
- https://access.redhat.com/errata/RHSA-2026:40945
- https://access.redhat.com/errata/RHSA-2026:50300
- https://access.redhat.com/errata/RHSA-2026:65126
- https://access.redhat.com/errata/RHSA-2026:9385
- https://access.redhat.com/errata/RHSA-2026:9742
- https://access.redhat.com/security/cve/CVE-2026-4926
- https://bugzilla.redhat.com/show_bug.cgi?id=2451867
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4926.json
- https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-j3q9-mxjg-w52f · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-4926 · ADVISORY
- https://github.com/pillarjs/path-to-regexp · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 26 Mar 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 27 Mar 2026)