CVE-2026-71327: Traefik: Gateway API route identity collision allows cross-namespace backend hijacking
There is a high severity vulnerability in Traefik’s Kubernetes Gateway API provider. Router and service identities for HTTPRoute, GRPCRoute, TCPRoute and TLSRoute objects were built by hyphen-concatenating the route namespace, the route name, the Gateway identity, the entry point and the rule index, a construction that is not injective because Kubernetes names may themselves contain hyphens. Two distinct Routes attached to the same Gateway with equivalent match rules can therefore produce the same identity, and the Route loaded later silently overwrites the earlier one, so a tenant able to create an accepted Route in a colliding namespace/name combination can redirect another namespace’s traffic to a backend it controls. All Traefik v3 minor lines are affected; the lines older than v3.6 are no longer maintained and will not receive a patch of their own, so users running them should upgrade to a maintained, patched release.
Traefik’s Kubernetes Gateway provider constructs internal HTTPRoute and GRPCRoute identities by concatenating namespace, route name, Gateway identity, entrypoint, and rule index with hyphens. Kubernetes names may themselves contain hyphens, so the construction is not injective.
For example, HTTPRoutes team/a-app and team-a/app, attached to the same
Gateway with the same match rule, produce identical router and service keys.
During configuration merging, the route loaded later overwrites the earlier
route’s maps. A tenant that can create an accepted Route in a colliding
namespace/name combination can therefore redirect another namespace’s
traffic to an attacker-controlled backend.
The official v3.7.8 binary was reproduced returning the victim backend before the second Route was created and the attacker backend immediately afterward. The victim Route had the earlier creation timestamp and should win the equivalent-match conflict under Gateway API precedence rules.
References
- github.com/advisories/GHSA-fgjj-px3w-67xx
- github.com/traefik/traefik/commit/a764166656f0cd337f917ac76315c381cca844f9
- github.com/traefik/traefik/pull/13580
- 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-fgjj-px3w-67xx
- nvd.nist.gov/vuln/detail/CVE-2026-71327
Code Behaviors & Features
Detect and mitigate CVE-2026-71327 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 →