Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/traefik/traefik/v3
  4. ›
  5. CVE-2026-54761

CVE-2026-54761: Traefik: Kubernetes Gateway crossProviderNamespaces bypass allows HTTPRoute outside the allowlist to expose internal Traefik services

June 17, 2026

There is a high severity vulnerability in Traefik’s Kubernetes Gateway provider affecting the crossProviderNamespaces allowlist. For HTTPRoute rules that declare multiple (WRR) backendRefs, Traefik evaluates the allowlist against the target backendRef.namespace instead of the route’s own namespace. As a result, an HTTPRoute created in a namespace that is not allow-listed can reference a cross-provider TraefikService such as api@internal, dashboard@internal or rest@internal by pointing backendRef.namespace at an allow-listed namespace covered by a Gateway API ReferenceGrant, exposing internal Traefik services on the data plane. Exploitation requires the ability to create an accepted HTTPRoute and a matching ReferenceGrant from an allow-listed namespace ; it does not require any change to Traefik static configuration, RBAC, or the deployment itself.

The Kubernetes Gateway provider’s crossProviderNamespaces option is documented as restricting which Gateway API route namespaces may declare TraefikService backendRefs.

For HTTPRoute rules with multiple backendRefs, Traefik checks this allowlist against backendRef.namespace instead of the HTTPRoute namespace. A route in a namespace that is not allow-listed can therefore add api@internal to the generated WRR service by setting backendRef.namespace to an allow-listed namespace, as long as a normal Gateway API ReferenceGrant permits that cross-namespace reference.

Verified affected versions:

  • v3.7.1 (fa49e2bcad7ffd8a80accdf1fae1ae480913d93d)
  • current source/master tested by me (29406d42898547f1ffabd904f66af06c212740cf)

References

  • github.com/advisories/GHSA-3g6v-2r68-prfc
  • github.com/traefik/traefik/releases/tag/v3.6.21
  • github.com/traefik/traefik/releases/tag/v3.7.5
  • github.com/traefik/traefik/security/advisories/GHSA-3g6v-2r68-prfc
  • nvd.nist.gov/vuln/detail/CVE-2026-54761

Code Behaviors & Features

Detect and mitigate CVE-2026-54761 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 →

Affected versions

All versions before 3.6.21, all versions starting from 3.7.0-ea.1 before 3.7.5

Fixed versions

  • 3.6.21
  • 3.7.5

Solution

Upgrade to versions 3.6.21, 3.7.5 or above.

Impact 7.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-284: Improper Access Control
  • CWE-863: Incorrect Authorization

Source file

go/github.com/traefik/traefik/v3/CVE-2026-54761.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 11 Jul 2026 00:16:56 +0000.