# CVE-2026-54765: Traefik incorrect authorization via backendRef filter collision in Kubernetes Gateway API

Source: https://junglewise.ai/threats/cve-2026-54765-traefik-incorrect-authorization-via-backendref-filter-collision  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-06. Updated: 2026-08-06  
License: CC BY 4.0 with a link back

CVE-2026-54765 · Severity: medium · CVSS 4 · Published 2026-07-06

A vulnerability in Traefik's Kubernetes Gateway API provider can cause security settings to be incorrectly shared between different web routes. If two routes point to the same backend service but use different security rules (like adding identity headers), Traefik may accidentally apply one route's rules to the other. This could allow an attacker to bypass security controls or impersonate other users by leaking sensitive context across different parts of the network.

Technologies: [github.com/traefik/traefik (Go)](https://junglewise.ai/threats/technologies/github-com-traefik-traefik), [github.com/traefik/traefik/v2 (Go)](https://junglewise.ai/threats/technologies/github-com-traefik-traefik-v2), [github.com/traefik/traefik/v3 (Go)](https://junglewise.ai/threats/technologies/github-com-traefik-traefik-v3). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2026-54765 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-54765 being exploited in the wild.

**How severe is CVE-2026-54765?** Medium severity, with a CVSS score of 4, published 6 July 2026.

**Which products and versions are affected?** github.com/traefik/traefik (Go) SEMVER:introduced=0; github.com/traefik/traefik/v2 (Go) SEMVER:introduced=0; github.com/traefik/traefik/v3 (Go) >= 3.7.0, <= 3.7.5, SEMVER:introduced=3.7.0,fixed=3.7.6.

**Is there a fix for CVE-2026-54765?** Yes. github.com/traefik/traefik/v3 (Go): upgrade to 3.7.6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-54765 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-54765?** Check whether you run github.com/traefik/traefik (Go), github.com/traefik/traefik/v2 (Go) or github.com/traefik/traefik/v3 (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/traefik/traefik/v3 (Go): upgrade to 3.7.6 or later

  ```sh
  go get github.com/traefik/traefik/v3@v3.7.6
  ```


## Technical details

The vulnerability exists in Traefik's Kubernetes Gateway API provider within `pkg/provider/kubernetes/gateway/httproute.go`. When generating dynamic HTTP backend service keys for `HTTPRoute` `backendRef`, Traefik uses only the namespace, Service name, protocol, and port, omitting the route or filter identity. If two routes target the same backend Service:port with different `backendRef` filters, the generated keys collide, and one configuration overwrites the other during the `maps.Copy` merge process. An attacker with permission to create an `HTTPRoute` can exploit this to force their filter context (e.g., headers used for auth or multi-tenancy) onto a victim's route. This is particularly impactful in cross-namespace deployments where `ReferenceGrant` is used.

## Affected products

- traefik traefik >= 3.7.0, <= 3.7.5

## Identifiers

- CVE-2026-54765
- GHSA-6p8f-p8j2-rqmv
- GO-2026-6205

## Timeline

- 2026-06-04: disclosed: Discovered and reproduced by researchers.
- 2026-07-01: advisory: Initial GitHub Advisory published.
- 2026-08-06: patched: Version 3.7.6 released.

## References

- [https://api.github.com/users/gooood4u](https://api.github.com/users/gooood4u)
- [https://github.com/gooood4u](https://github.com/gooood4u)
- [https://api.github.com/users/gooood4u/gists%7B/gist_id%7D](https://api.github.com/users/gooood4u/gists%7B/gist_id%7D)
- [https://api.github.com/users/gooood4u/repos](https://api.github.com/users/gooood4u/repos)
- [https://avatars.githubusercontent.com/u/287913632?v=4](https://avatars.githubusercontent.com/u/287913632?v=4)
- [https://api.github.com/users/gooood4u/events%7B/privacy%7D](https://api.github.com/users/gooood4u/events%7B/privacy%7D)

## Related threats

- [Traefik BasicAuth singleflight username enumeration via timing oracle](https://junglewise.ai/threats/cve-2026-88010-traefik-basicauth-singleflight-username-enumeration-via-timing)
- [Traefik readTimeout not enforced on HTTP/3 connections](https://junglewise.ai/threats/cve-2026-88012-traefik-readtimeout-not-enforced-on-http-3-connections)
- [Traefik ForwardAuth identity spoofing via header alias](https://junglewise.ai/threats/cve-2026-88011-traefik-forwardauth-identity-spoofing-via-header-alias)
- [Traefik rootless HTTP/1 request-target routing bypass](https://junglewise.ai/threats/cve-2026-88009-traefik-rootless-http-1-request-target-routing-bypass)
- [Traefik HTTP request smuggling via unrestricted protocol upgrade](https://junglewise.ai/threats/cve-2026-88008-traefik-http-request-smuggling-via-unrestricted-protocol-upgrade)
