CVE-2026-4867 path-to-regexp vulnerable to Regular Expression Denial of Service via multiple route parameters
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- DebianRed Hat
Description
Impact:
A bad regular expression is generated any time you have three or more parameters within a single segment, separated by something that is not a period (.). For example, /:a-:b-:c or /:a-:b-:c-:d. The backtrack protection added in path-to-regexp@0.1.12 only prevents ambiguity for two parameters. With three or more, the generated lookahead does not block single separator characters, so capture groups overlap and cause catastrophic backtracking.
Patches:
Upgrade to path-to-regexp@0.1.13
Custom regex patterns in route definitions (e.g., /:a-:b([^-/]+)-:c([^-/]+)) are not affected because they override the default capture group.
Workarounds:
All versions can be patched by providing a custom regular expression for parameters after the first in a single segment. As long as the custom regular expression does not match the text before the parameter, you will be safe. For example, change /:a-:b-:c to /:a-:b([^-/]+)-:c([^-/]+).
If paths cannot be rewritten and versions cannot be upgraded, another alternative is to limit the URL length.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm path-to-regexp | < 0.1.13 | 0.1.13 |
| npm path-to-regexp(npm) | < 0.1.13 | 0.1.13 |
| debian/node-path-to-regexp(Debian:12) | < 1.0.1-1 | 1.0.1-1 |
| debian/node-path-to-regexp(Debian:13) | < 1.0.1-1 | 1.0.1-1 |
| debian/node-path-to-regexp(Debian:14) | < 1.0.1-1 | 1.0.1-1 |
| redhat/cluster-observability-operator/logging-console-plugin-pf4-rhel9:1782839279(Red Hat:cluster_observability_operator:1.5::el9) | All versions | No fix listed |
| redhat/cluster-observability-operator/logging-console-plugin-pf5-rhel9:1782840539(Red Hat:cluster_observability_operator:1.5::el9) | All versions | No fix listed |
| redhat/cluster-observability-operator/troubleshooting-panel-console-plugin-pf6-rhel9:1782839996(Red Hat:cluster_observability_operator:1.5::el9) | All versions | No fix listed |
| redhat/cryostat/cryostat-openshift-console-plugin-rhel9(Red Hat:cryostat:4) | All versions | No fix listed |
| redhat/path-to-regexp(Red Hat:cryostat:4) | All versions | No fix listed |
| redhat/openshift-logging/elasticsearch6-rhel9(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/elasticsearch-operator-bundle(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/elasticsearch-proxy-rhel9(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/elasticsearch-rhel9-operator(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/kibana6-rhel8(Red Hat:logging:5) | All versions | No fix listed |
| redhat/openshift-logging/logging-curator5-rhel9(Red Hat:logging:5) | All versions | No fix listed |
| redhat/mta/mta-ui-rhel9(Red Hat:migration_toolkit_applications:8) | All versions | No fix listed |
| redhat/migration-toolkit-virtualization/mtv-console-plugin-rhel9(Red Hat:migration_toolkit_virtualization:2) | All versions | No fix listed |
| redhat/mtv-candidate/mtv-console-plugin-rhel9(Red Hat:migration_toolkit_virtualization:2) | All versions | No fix listed |
| redhat/multicluster-engine/console-mce-rhel9(Red Hat:multicluster_engine) | All versions | No fix listed |
| redhat/network-observability/network-observability-console-plugin-rhel9(Red Hat:network_observ_optr:1) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-console-plugin-pf5-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-console-plugin-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/openshift-pipelines/pipelines-console-plugin-rhel8(Red Hat:openshift_pipelines:1) | All versions | No fix listed |
| redhat/openshift-pipelines/pipelines-console-plugin-rhel9(Red Hat:openshift_pipelines:1) | All versions | No fix listed |
Show 65 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/openshift-service-mesh/kiali-ossmc-rhel8(Red Hat:service_mesh:2) | All versions | No fix listed |
| redhat/openshift-service-mesh/kiali-rhel8(Red Hat:service_mesh:2) | All versions | No fix listed |
| redhat/openshift-service-mesh/kiali-operator-bundle(Red Hat:service_mesh:3) | All versions | No fix listed |
| redhat/openshift-service-mesh/kiali-ossmc-rhel9(Red Hat:service_mesh:3) | All versions | No fix listed |
| redhat/openshift-service-mesh/kiali-rhel9(Red Hat:service_mesh:3) | All versions | No fix listed |
| redhat/openshift-service-mesh/kiali-rhel9-operator(Red Hat:service_mesh:3) | All versions | No fix listed |
| redhat/rhacm2/console-rhel9(Red Hat:acm:2) | All versions | No fix listed |
| redhat/advanced-cluster-security/rhacs-main-rhel8(Red Hat:advanced_cluster_security:4) | All versions | No fix listed |
| redhat/amq7-tech-preview/amq-broker-jolokia-api-server-rhel9(Red Hat:amq_broker:7) | All versions | No fix listed |
| redhat/path-to-regexp(Red Hat:amq_broker:7) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/gateway-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-tech-preview/mcp-server-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/automation-controller(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/automation-eda-controller(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/automation-gateway(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/automation-platform-ui(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/path-to-regexp(Red Hat:apache_camel_hawtio:4) | All versions | No fix listed |
| redhat/path-to-regexp(Red Hat:service_registry:2) | All versions | No fix listed |
| redhat/path-to-regexp(Red Hat:optaplanner:::el6) | All versions | No fix listed |
| redhat/podman-desktop-macos-1-0(Red Hat:podman_desktop:1) | All versions | No fix listed |
| redhat/podman-desktop-windows-1-0(Red Hat:podman_desktop:1) | All versions | No fix listed |
| redhat/path-to-regexp(Red Hat:jboss_data_grid:8) | All versions | No fix listed |
| redhat/rhdh/backstage-community-plugin-catalog-backend-module-scaffolder-relation-processor(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/rhdh/rhdh-hub-rhel9(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/rhem/flightctl-ui-ocp-rhel9(Red Hat:edge_manager:1) | All versions | No fix listed |
| redhat/rhem/flightctl-ui-rhel9(Red Hat:edge_manager:1) | All versions | No fix listed |
| redhat/linux-sgx(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/mozjs60(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/pcs(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/gjs(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/linux-sgx(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/pcs(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/path-to-regexp(Red Hat:jboss_fuse:7) | All versions | No fix listed |
| redhat/path-to-regexp(Red Hat:jboss_enterprise_application_platform:7) | All versions | No fix listed |
| redhat/path-to-regexp(Red Hat:jboss_enterprise_application_platform:8) | All versions | No fix listed |
| redhat/path-to-regexp(Red Hat:jbosseapxp) | All versions | No fix listed |
| redhat/rhoai/odh-data-science-pipelines-argo-argoexec-rhel8(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-data-science-pipelines-argo-workflowcontroller-rhel8(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-mlflow-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/openshift4/ose-agent-installer-ui-rhel9(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-console(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-console-rhel9(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-monitoring-plugin-rhel9(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/odf4/mcg-core-rhel9(Red Hat:openshift_data_foundation:4) | All versions | No fix listed |
| redhat/odf4/ocs-client-console-rhel9(Red Hat:openshift_data_foundation:4) | All versions | No fix listed |
| redhat/odf4/odf-console-rhel9(Red Hat:openshift_data_foundation:4) | All versions | No fix listed |
| redhat/odf4/odf-multicluster-console-rhel9(Red Hat:openshift_data_foundation:4) | All versions | No fix listed |
| redhat/devspaces/code-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| redhat/devspaces/jetbrains-ide-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| redhat/rhosdt/tempo-jaeger-query-rhel9(Red Hat:openshift_distributed_tracing:3) | All versions | No fix listed |
| redhat/openshift-gitops-1/argocd-rhel8(Red Hat:openshift_gitops:1) | All versions | No fix listed |
| redhat/openshift-gitops-1/argocd-rhel9(Red Hat:openshift_gitops:1) | All versions | No fix listed |
| redhat/openshift-gitops-1/console-plugin-rhel8(Red Hat:openshift_gitops:1) | All versions | No fix listed |
| redhat/container-native-virtualization/kubevirt-console-plugin(Red Hat:container_native_virtualization:4) | All versions | No fix listed |
| redhat/container-native-virtualization/kubevirt-console-plugin-rhel9(Red Hat:container_native_virtualization:4) | All versions | No fix listed |
| redhat/path-to-regexp(Red Hat:jboss_bpms:7) | All versions | No fix listed |
| redhat/quay/quay-rhel8(Red Hat:quay:3) | All versions | No fix listed |
| redhat/nodejs-react-router(Red Hat:satellite:6) | All versions | No fix listed |
| redhat/nodejs-react-router-dom(Red Hat:satellite:6) | All versions | No fix listed |
| redhat/path-to-regexp(Red Hat:red_hat_single_sign_on:7) | All versions | No fix listed |
| redhat/rhtas/rhtas-console-ui-rhel9(Red Hat:trusted_artifact_signer:1) | All versions | No fix listed |
| redhat/rhtpa/rhtpa-trustification-service-rhel9(Red Hat:trusted_profile_analyzer:2) | All versions | No fix listed |
| redhat/ansible-automation-platform/automation-portal(Red Hat:ansible_portal:2) | All versions | No fix listed |
| pillarjs path-to-regexp | < 0.1.13 | 0.1.13 |
References
- github.com not-applicable vendor-advisory
- blakeembrey.com technical-description
- cna.openjsf.org third-party-advisory
- github.com vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com
- Debian Security Tracker CVE-2026-4867 vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:34342 patch vendor-advisory
- Red Hat Bugzilla 2451783 issue-tracking
- www.cve.org
- github.com product