CVE-2026-71325: Traefik: `allowCrossNamespace=false` bypass via `@kubernetescrd` TraefikService backendRef
There is a medium severity vulnerability in Traefik’s Kubernetes CRD provider. When providers.kubernetesCRD.allowCrossNamespace is disabled — the default — cross-namespace @kubernetescrd references are rejected for middlewares, TLS options and HTTP/TCP ServersTransports, but the same restriction was not applied to TraefikService backend references resolved by the service resolver. A tenant confined by RBAC to a single namespace can therefore bind its own router to a TraefikService owned by another namespace and expose or reroute that namespace’s backend, defeating the namespace isolation allowCrossNamespace=false is meant to enforce. Traefik v2 releases and the unmaintained v3 minor lines below v3.6 are affected and will not receive a patch on their own line; the remedy for those users is upgrading to a maintained, patched release.
When providers.kubernetesCRD.allowCrossNamespace=false (the default), Traefik correctly rejects cross-namespace @kubernetescrd references for middlewares, TLS options, and HTTP/TCP ServersTransport, but it does not apply the same restriction to service (TraefikService) backendRefs. As a result, a Kubernetes tenant who is confined by RBAC to their own namespace can bind their own router to a TraefikService owned by another namespace simply by referencing it as <victim-namespace>-<name>@kubernetescrd, defeating the namespace-isolation boundary that allowCrossNamespace=false is meant to enforce.
This is the service-resolver sibling of the cross-namespace isolation family that Traefik has been fixing one resolver at a time (df00d82f / CVE-2026-41174 for Chain middlewares, and 67501cbe for TCP ServersTransport, which shipped in v3.7.7 only four days before the analyzed commit). The TraefikService resolver in configBuilder.nameAndService was never given the guard its sibling resolvers received.
References
- github.com/advisories/GHSA-62fc-8686-hfmq
- github.com/traefik/traefik/commit/65ebf4b47fbdc33e3856803a5844a404e094d52d
- github.com/traefik/traefik/releases/tag/v2.11.54
- github.com/traefik/traefik/releases/tag/v3.6.25
- github.com/traefik/traefik/releases/tag/v3.7.10
- github.com/traefik/traefik/security/advisories/GHSA-62fc-8686-hfmq
- nvd.nist.gov/vuln/detail/CVE-2026-71325
Code Behaviors & Features
Detect and mitigate CVE-2026-71325 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →