# CVE-2026-54764: ForwardAuth middleware leaks X-Forwarded-Port spoofing via untrusted X-Forwarded-Proto when trustForwardHeader=false

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.9
- **CVSS:** 6.9 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: Low; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-345
- **Aliases:** GHSA-3q9r-p662-5j8m, GO-2026-6202
- **Published:** 2026-07-06T20:20:29.345Z
- **Modified:** 2026-08-18T15:10:51.913Z

## Who should check

- Projects that depend on Go package github.com/traefik/traefik/v2 (\< 2.11.51)
- Projects that depend on Go package github.com/traefik/traefik/v3 (\< 3.6.22)
- Projects that depend on Go package github.com/traefik/traefik (\<= 1.7.34)
- Anyone running traefik \< 2.11.51; \>= 3.0.0, \< 3.6.22; \>= 3.7.0, \< 3.7.6

## Description

Traefik is an HTTP reverse proxy and load balancer. Prior to v2.11.51, v3.6.22, and v3.7.6, Traefik's ForwardAuth middleware, even when configured with trustForwardHeader: false, derives the X-Forwarded-Port header sent to the authentication service from the original incoming request instead of the sanitized forwarded request. As a result, an unauthenticated remote attacker can inject an X-Forwarded-Proto: https header over a plain HTTP connection and cause Traefik to forward X-Forwarded-Port: 443 to the authentication service, bypassing port-based authorization checks. This issue is fixed in versions v2.11.51, v3.6.22, and v3.7.6.

## Affected and fixed versions

- Go `github.com/traefik/traefik/v2`: affected \< 2.11.51; fixed 2.11.51 (osv)
- Go `github.com/traefik/traefik/v3`: affected \< 3.6.22; fixed 3.6.22, 3.7.6 (osv)
- Go `github.com/traefik/traefik`: affected \<= 1.7.34; fixed no fix listed yet (osv)
- traefik: \< 2.11.51; \>= 3.0.0, \< 3.6.22; \>= 3.7.0, \< 3.7.6 (cvelist)

## Mitigation

- Upgrade github.com/traefik/traefik/v2 to 2.11.51 or later.
- Upgrade github.com/traefik/traefik/v3 to one of 3.6.22, 3.7.6 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-54764. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-54764.md
Affected: github.com/traefik/traefik/v2 < 2.11.51; github.com/traefik/traefik/v3 < 3.6.22; github.com/traefik/traefik <= 1.7.34
Fixed in: 2.11.51, 3.6.22, 3.7.6

Steps:
1. Search this machine and project for github.com/traefik/traefik/v2 (Go), github.com/traefik/traefik/v3 (Go), github.com/traefik/traefik (Go), traefik: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-54764 being exploited?

There is no confirmed exploitation: CVE-2026-54764 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-54764?

Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-54764?

github.com/traefik/traefik/v2 \< 2.11.51; github.com/traefik/traefik/v3 \< 3.6.22; github.com/traefik/traefik \<= 1.7.34.

### Is there a fix for CVE-2026-54764?

Yes. Fixed in 2.11.51, 3.6.22, 3.7.6. Upgrade github.com/traefik/traefik/v2 to 2.11.51 or later. Upgrade github.com/traefik/traefik/v3 to one of 3.6.22, 3.7.6 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-54764?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/traefik/traefik/security/advisories/GHSA-3q9r-p662-5j8m>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-54764>
- patch: <https://github.com/traefik/traefik/pull/13344>
- patch: <https://github.com/traefik/traefik/commit/7ae92d8c2c10ac04ef5a03df0ed5019ce0f44b2d>
- other: <https://github.com/traefik/traefik>
- other: <https://github.com/traefik/traefik/releases/tag/v2.11.51>
- other: <https://github.com/traefik/traefik/releases/tag/v3.6.22>
- other: <https://github.com/traefik/traefik/releases/tag/v3.7.6>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-54764>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-3q9r-p662-5j8m> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-6202> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-54764> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-54764>
