ForwardAuth middleware leaks X-Forwarded-Port spoofing via untrusted X-Forwarded-Proto when trustForwardHeader=false
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-345.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| traefik | traefik | before 2.11.51; 3.0.0 to before 3.6.22; 3.7.0 to before 3.7.6 | 2.11.51, 3.6.22, 3.7.6 | Patch available | CNA |
| — | github.com/traefik/traefik/v2 (Go) | before 2.11.51 | 2.11.51 | Patch available | GHSA-3q9r-p662-5j8m |
| — | github.com/traefik/traefik/v3 (Go) | before 3.6.22 | 3.6.22 | Patch available | GHSA-3q9r-p662-5j8m |
| — | github.com/traefik/traefik/v3 (Go) | 3.7.0 to before 3.7.6 | 3.7.6 | Patch available | GHSA-3q9r-p662-5j8m |
| — | github.com/traefik/traefik (Go) | up to 1.7.34 | — | No fix listed | GHSA-3q9r-p662-5j8m |
- traefik Vendortraefik Affected before 2.11.51; 3.0.0 to before 3.6.22; 3.7.0 to before 3.7.6 Fixed in 2.11.51, 3.6.22, 3.7.6 Patch available CNA
- github.com/traefik/traefik/v2 (Go) Vendor— Affected before 2.11.51 Fixed in 2.11.51 Patch available GHSA-3q9r-p662-5j8m
- github.com/traefik/traefik/v3 (Go) Vendor— Affected before 3.6.22 Fixed in 3.6.22 Patch available GHSA-3q9r-p662-5j8m
- github.com/traefik/traefik/v3 (Go) Vendor— Affected 3.7.0 to before 3.7.6 Fixed in 3.7.6 Patch available GHSA-3q9r-p662-5j8m
- github.com/traefik/traefik (Go) Vendor— Affected up to 1.7.34 Fixed in — No fix listed GHSA-3q9r-p662-5j8m
Remediation
- Fix · CNA traefik (traefik) Fixed in 2.11.51, 3.6.22, 3.7.6
- Fix · GHSA-3q9r-p662-5j8m github.com/traefik/traefik/v2 (Go) Fixed in 2.11.51 Advisory →
- Fix · GHSA-3q9r-p662-5j8m github.com/traefik/traefik/v3 (Go) Fixed in 3.6.22 Advisory →
- Fix · GHSA-3q9r-p662-5j8m github.com/traefik/traefik/v3 (Go) Fixed in 3.7.6 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift Dev Spaces | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-54764
- 2026-10-03 Alias added: GHSA-3q9r-p662-5j8m
References
Patch 2
More Traefik vulnerabilities
- TI-2023-23979 The HTTP/2 protocol allows a denial of service (server resource consumption) because… KEVCVSS 3.1HIGH 7.5
- TI-2023-25774 Uncontrolled Resource Consumption in Traefik CVSS 3.1HIGH 7.5
- TI-2025-40914 Traefik doesn't Prevent Path Normalization Bypass in Router + Middleware Rules CVSS 4.0MEDIUM 6.9
- TI-2022-07529 Authorization header displayed in the debug logs CVSS 3.1MEDIUM 6.5
- TI-2024-30459 HTTP client can remove the X-Forwarded headers in Traefik CVSS 3.1CRITICAL 9.8
- TI-2026-60261 Traefik v3.7.0 Authentication Bypass via from-to-www-redirect CVSS 4.0CRITICAL 9.3
Sources
- CVE-2026-54764 · CVE Program
- CVE-2026-54764 · NVD
- FIRST EPSS
- GHSA-3q9r-p662-5j8m · GitHub Advisory Database · CC BY 4.0
- CVE-2026-54764 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences