CVE-2026-4926 Details
Description
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.
A denial-of-service vulnerability has been identified in the 'path-to-regexp' project, specifically in version 8.4.0. The issue arises from the generation of inefficient regular expressions when multiple sequential optional groups are used in route patterns. This flaw causes the regex processing to become exponentially more complex with the addition of each group, leading to significant performance degradation. The vulnerability can be exploited by crafting route patterns that include several sequential optional groups, particularly those that are user-controlled.
Users can upgrade to 'path-to-regexp' version 8.4.0 or later to address this vulnerability. Additionally, it is recommended to limit the use of sequential optional groups in route patterns and to avoid using user-controlled input as route patterns.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 27, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | redhat-SADP |
| CWE-1333 | Inefficient Regular Expression Complexity | openjs |
| CWE-400 | Uncontrolled Resource Consumption | openjs |
Affected Products
| Product | Versions |
|---|---|
| pillarjs path-to-regexp | >= 8.0.0, < 8.4.0 |
CPE
Remediation
| |
Change History
21 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 9, 2026 | CVE Modified | redhat-SADP |
| Sep 7, 2026 | CVE Modified | redhat-SADP |
| Sep 7, 2026 | CVE Modified | openjs |
| Aug 25, 2026 | CVE Modified | redhat-SADP |
| Aug 24, 2026 | CVE Modified | redhat-SADP |
| Aug 19, 2026 | CVE Modified | redhat-SADP |
| Aug 18, 2026 | CVE Modified | redhat-SADP |
| Aug 17, 2026 | CVE Modified | redhat-SADP |
| Aug 5, 2026 | CVE Modified | redhat-SADP |
| Aug 4, 2026 | CVE Modified | redhat-SADP |
| Aug 3, 2026 | CVE Modified | redhat-SADP |
| Jul 21, 2026 | CVE Modified | redhat-SADP |
| Jul 17, 2026 | CVE Modified | redhat-SADP |
| Jul 16, 2026 | CVE Modified | redhat-SADP |
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jul 9, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | openjs |
| Apr 16, 2026 | Initial Analysis | [email protected] |
| Mar 26, 2026 | New CVE Received | openjs |