cve.bz

CVE-2026-4926 pillarjs path-to-regexp: Uncontrolled Resource Consumption

7.5 highEPSS 0.9%Fix available

High (7.5) in pillarjs path-to-regexp. EPSS 0.9% estimated probability of exploitation activity in the next 30 days. Fixed in path-to-regexp 8.4.0.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.9% (unchanged from 0.8% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 60th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-03-27. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-400 Uncontrolled Resource Consumption
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-4926 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-4926?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-4926?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-4926 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
path-to-regexpfrom 8.0.0 before 8.4.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-j3q9-mxjg-w52fnpmpath-to-regexp>=8.0.0 <8.4.08.4.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13node-path-to-regexpno fix listedDEBIAN-CVE-2026-4926
Debian14node-path-to-regexp8.4.0-1DEBIAN-CVE-2026-4926
Red Hatansible_automation_platform:2.5::el8automation-controller-venv-tower0:4.6.29-2.el8apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el8automation-gateway-proxy-server0:2.5.10-6.el8apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el8automation-gateway-server0:2.5.20260422-3.el8apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el8python3.12-pillow0:12.2.0-1.el8apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el8, ansible_automation_platform_developer:2.5::el8, ansible_automation_platform_inside:2.5::el8python3.12-click0:8.3.3-1.el8apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el8, ansible_automation_platform_developer:2.5::el8, ansible_automation_platform_inside:2.5::el8python3.12-cryptography0:46.0.7-1.el8apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el8, ansible_automation_platform_developer:2.5::el8, ansible_automation_platform_inside:2.5::el8receptor0:1.6.5-1.el8apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el9automation-controller-venv-tower0:4.6.29-2.el9apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el9automation-gateway-proxy-server0:2.6.14-3.el9apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el9automation-gateway-server0:2.5.20260422-3.el9apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el9python3.12-pillow0:12.2.0-1.el9apRHSA-2026:24761
Red Hatansible_automation_platform:2.5::el9, ansible_automation_platform_developer:2.5::el9, ansible_automation_platform_inside:2.5::el9python3.12-click0:8.3.3-1.el9apRHSA-2026:24761
13 more for Red Hat in the JSON and on Red Hat's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This is an Important flaw in `path-to-regexp` that can lead to a Denial of Service. The vulnerability occurs when specially crafted input containing multiple sequential optional groups is used to generate regular expressions, causing exponential resource consumption.

The Red Hat Advanced Cluster Security is not affected by this issue since it's shipping a `path-to-regexp` version which doesn't contain the vulnerable code.

Red Hat's mitigation

To mitigate this vulnerability, limit the use of multiple sequential optional groups in route patterns within applications that use `path-to-regexp`. Additionally, avoid directly passing user-controlled input as route patterns to prevent the generation of maliciously crafted regular expressions.

ProductPackageStateAdvisory
Cryostat 4 on RHEL 9cryostat/cryostat-openshift-console-plugin-rhel9:4.2.0-9Fixed 2026-05-26RHSA-2026:17789
Red Hat Ansible Automation Platform 2.5 for RHEL 8automation-gateway-0:2.5.20260422-3.el8apFixed 2026-06-09RHSA-2026:24761
Red Hat Ansible Automation Platform 2.5 for RHEL 9automation-gateway-0:2.5.20260422-3.el9apFixed 2026-06-09RHSA-2026:24761
Red Hat Ansible Automation Platform 2.6 for RHEL 9automation-platform-ui-0:2.6.9-1.el9apFixed 2026-06-09RHSA-2026:24762
Migration Toolkit for Virtualization 2.10migration-toolkit-virtualization/mtv-console-plugin-rhel9:1779139872Fixed 2026-05-19RHSA-2026:19409
Migration Toolkit for Virtualization 2.9migration-toolkit-virtualization/mtv-console-plugin-rhel9:1778927462Fixed 2026-05-19RHSA-2026:19410
Red Hat Ansible Automation Platform 2.6ansible-automation-platform-tech-preview/mcp-server-rhel9:1777386606Fixed 2026-05-04RHSA-2026:13545
Red Hat Ansible Automation Platform 2.6ansible-automation-platform-26/gateway-rhel9:1779773804Fixed 2026-06-09RHSA-2026:24866
Red Hat Developer Hub 1.8rhdh/rhdh-hub-rhel9:1776784286Fixed 2026-04-22RHSA-2026:9742
Red Hat Developer Hub 1.9rhdh/rhdh-hub-rhel9:1777903262Fixed 2026-05-05RHSA-2026:13826
Cryostat 4io.cryostat-cryostatNot affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch6-rhel9Will not fix
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch-operator-bundleWill not fix
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch-proxy-rhel9Will not fix
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch-rhel9-operatorWill not fix
Logging Subsystem for Red Hat OpenShiftopenshift-logging/kibana6-rhel8Will not fix
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-curator5-rhel9Will not fix
Migration Toolkit for Virtualizationmtv-candidate/mtv-console-plugin-rhel9Will not fix
Multicluster Engine for Kubernetesmulticluster-engine/console-mce-rhel9Not affected
Network Observability Operatornetwork-observability/network-observability-console-plugin-rhel9Not affected
73 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-4926.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup
  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON