Traefik Kubernetes CRD Provider Cross-Namespace Middleware Bypass Vulnerability

Vulnerability

A vulnerability exists in Traefik's Kubernetes Custom Resource Definition (CRD) provider regarding cross-namespace isolation. When the 'allowCrossNamespace' option is set to false, Traefik properly rejects direct cross-namespace middleware references in IngressRoute objects. However, it does not enforce the same restriction for middleware references within a Chain middleware's 'spec.chain.middlewares[]' array. This flaw allows users with permission to create or update Traefik CRDs in their own namespace to reference and apply middleware from other namespaces, circumventing the intended isolation. This issue affects Traefik versions through 2.11.42, 3.6.13, and 3.7.0-rc.1.

Impact

Exploitation of this vulnerability allows for unauthorized cross-namespace middleware binding, enabling the application of middleware from one namespace to resources in another, contrary to the established isolation policies.

Reproduction

To reproduce this vulnerability, create a Chain middleware in a namespace with 'allowCrossNamespace' set to false. Include references to middleware located in a different namespace. When the IngressRoute is processed, Traefik will incorrectly apply the cross-namespace middleware, bypassing the isolation enforcement.

Remediation

Users can upgrade to Traefik versions 2.11.43, 3.6.14, or 3.7.0-rc.2, all of which include the necessary patch to address this vulnerability.

Added: Apr 30, 2026, 9:27 PM
Updated: Apr 30, 2026, 9:27 PM

Vulnerability Rating

Custom Algorithm
spread
7.6
impact
2.5
exploitability
6.4
remediation
7.7
relevance
7.1
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.