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

CVE-2026-35051: Traefik's ForwardAuth trustForwardHeader=false allows spoofed X-Forwarded-Prefix to bypass authentication

April 24, 2026 (updated May 6, 2026)

There is a high-severity authentication bypass vulnerability in Traefik’s ForwardAuth middleware when trustForwardHeader=false is configured and Traefik is deployed behind a trusted upstream proxy.

While X-Forwarded-* headers (such as X-Forwarded-For, X-Forwarded-Host, and X-Forwarded-Proto) from trusted context are correctly rebuilt, it does not strip or rebuild X-Forwarded-Prefix, leaving any attacker-supplied value intact in the subrequest forwarded to the authentication service.

When the authentication service makes authorization decisions based on X-Forwarded-Prefix, an external attacker can spoof a trusted prefix value and gain unauthorized access to protected backend routes.

ForwardAuth with trustForwardHeader=false still forwards an attacker-controlled X-Forwarded-Prefix header to the authentication service when Traefik is deployed behind a trusted upstream proxy. If the auth service relies on X-Forwarded-Prefix for authorization or routing decisions, an external attacker can bypass access controls and reach protected backend routes.

This was validated this against Traefik v3.6.12 using the official Docker image and a minimal local Docker setup. A direct request to Traefik is correctly rejected, but the same request succeeds when sent through a trusted reverse proxy, which shows the issue is in the ForwardAuth subrequest handling rather than general ingress header stripping.

References

  • github.com/advisories/GHSA-6384-m2mw-rf54
  • github.com/traefik/traefik/releases/tag/v2.11.43
  • github.com/traefik/traefik/releases/tag/v3.6.14
  • github.com/traefik/traefik/releases/tag/v3.7.0-rc.2
  • github.com/traefik/traefik/security/advisories/GHSA-6384-m2mw-rf54
  • nvd.nist.gov/vuln/detail/CVE-2026-35051

Code Behaviors & Features

Detect and mitigate CVE-2026-35051 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 starting from 3.0.0-beta1 before 3.6.14, all versions starting from 3.7.0-ea.1 before 3.7.0-rc.2

Fixed versions

  • 3.6.14
  • 3.7.0-rc.2

Solution

Upgrade to versions 3.6.14, 3.7.0-rc.2 or above.

Impact 10 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-345: Insufficient Verification of Data Authenticity

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Thu, 21 May 2026 12:18:45 +0000.