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

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2026-07-06T20:20:29.345Z
- Modified: 2026-08-18T15:10:51.913Z
- Also known as: GHSA-3q9r-p662-5j8m, GO-2026-6202
- Weaknesses: CWE-345
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- traefik traefik: < 2.11.51; >= 3.0.0, < 3.6.22; >= 3.7.0, < 3.7.6; before 2.11.51; from 3.0.0 before 3.6.22; from 3.7.0 before 3.7.6
- github.com/traefik/traefik/v2 (Go): before 2.11.51
- github.com/traefik/traefik/v3 (Go): before 3.6.22; from 3.7.0 before 3.7.6
- github.com/traefik/traefik (Go): up to 1.7.34; all versions

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N`

## References

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

## Sources

- CVE List: [CVE-2026-54764](https://www.cve.org/CVERecord?id=CVE-2026-54764), CVE Terms of Use, modified 2026-07-07
- GitHub Advisory Database: [GHSA-3q9r-p662-5j8m](https://github.com/advisories/GHSA-3q9r-p662-5j8m), CC-BY-4.0, modified 2026-08-18
- Go Vulnerability Database: [GO-2026-6202](https://pkg.go.dev/vuln/GO-2026-6202), CC-BY-4.0, modified 2026-08-18
- NVD: [CVE-2026-54764](https://nvd.nist.gov/vuln/detail/CVE-2026-54764), Public domain, modified 2026-07-08

---

Page: https://cve.day/CVE-2026-54764 · Whole record: https://cve.day/CVE-2026-54764.json · Rebuilt by cve.day 2026-11-25T22:59:27.260Z
