/

CVE-2026-65601

Severity:

HIGH RISK

(8.8)

Authorization Bypass (CWE-863) in Traefik Gateway API

CVE-2026-65601

Analyzed

Vulnerability type

Category:

Improper Authorization

CWE:

CWE-863

Impact:

Authorization Bypass and Identity Header Injection

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A namespace confusion vulnerability in Traefik's Kubernetes Gateway API provider can cause an HTTPRoute extension reference to resolve against the wrong namespace. A low-privileged route author may then attach a Middleware from a backend Service's namespace and inject trusted reverse-proxy identity headers into downstream requests when cross-namespace routing permissions are present.

Affected context

The issue occurs in Traefik deployments using the Kubernetes Gateway API provider to process HTTPRoutes with backend references and extension references. It becomes risky when a route author can use a ReferenceGrant for a cross-namespace Service, while the provider independently resolves the referenced Middleware using the backend namespace rather than the HTTPRoute namespace.

Exploit preconditions

  • Attack surface: Kubernetes Gateway API route configuration processed by Traefik
  • Required access: Permission to create or modify an HTTPRoute and access to an applicable cross-namespace Service reference
  • Authorization condition: A ReferenceGrant must permit the cross-namespace Service relationship
  • Trigger point: Resolution of HTTPRoute.spec.rules[].backendRefs[].filters[].extensionRef
  • Why exploitation is possible: Namespace selection for the extension reference is derived from the backend Service instead of the HTTPRoute, allowing authorization boundaries for Middleware references to be bypassed

Why this happens

The underlying bug is an authorization and namespace-resolution mismatch. The provider evaluates an extension reference in the backend Service namespace, even though the HTTPRoute namespace should determine the reference's authorization context. This maps to CWE-863: Incorrect Authorization, because a permission granted for one cross-namespace relationship is incorrectly treated as sufficient for access to another resource.

Potential impact

  • Downstream requests may contain attacker-selected or unauthorized trusted identity headers
  • Backend services may misidentify the authenticated user, tenant, or originating proxy
  • Authorization controls that trust reverse-proxy headers could be bypassed
  • Cross-namespace isolation between route authors and Middleware resources may be weakened
  • Requests could be routed through unintended security or policy behavior

General mitigation guidance

Mitigation generally focuses on preserving independent authorization checks for every referenced resource and maintaining the correct namespace context throughout resolution.

Common defensive patterns include:

  • Resolve extension references using the HTTPRoute namespace and the API object's documented scoping rules
  • Require an explicit, separately validated authorization relationship for cross-namespace Middleware references
  • Treat identity headers as untrusted unless they are generated and protected by a trusted boundary
  • Limit which namespaces and resource kinds route authors may reference
  • Apply least-privilege permissions to Gateway API objects and controller identities
  • Use secure-by-default policies that deny cross-namespace references unless explicitly allowed

How teams detect issues like this

Organizations can assess this class of issue through:

  • Static analysis that compares namespace sources for related API references
  • Code review checks requiring each cross-namespace resource relationship to undergo independent authorization
  • Tests covering HTTPRoutes, backend Services, Middleware resources, and ReferenceGrant combinations across distinct namespaces
  • Admission policies that restrict cross-namespace references and trusted identity-header behavior
  • Audit-log analysis for route authors creating cross-namespace references or attaching identity-related Middleware
  • Automated security review tools that flag inconsistent namespace resolution and authorization decisions

Sources

SourceLink
github.comgithub.com/traefik/traefik/commit/26c96a3935cafb473f4a5bae1886560d9aa4e4f0
github.comgithub.com/traefik/traefik/security/advisories/GHSA-qq9q-x9w4-chhj
vulncheck.comvulncheck.com/advisories/traefik-before-namespace-confusion-via-httproute-extensionref

Frequently asked

questions

Exploitation generally requires control over an applicable HTTPRoute or equivalent route-authoring permissions. A client that can only send ordinary application requests would not normally satisfy that prerequisite.

Not necessarily. The issue is relevant when a route author has a permitted cross-namespace Service reference through a ReferenceGrant, but lacks an independent authorization grant for the Middleware that is incorrectly resolved in that namespace.

Preserve the HTTPRoute namespace as the authorization context and validate Middleware references independently from backend Service references. Cross-namespace access should require explicit authorization for each resource relationship.

Use namespace-aware authorization tests, review every cross-namespace reference path, restrict route-authoring permissions, and avoid treating proxy-supplied identity headers as trustworthy without a controlled security boundary.

Find out what's already
exploitable in your codebase.