Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend HTTP request with underscore-variant headers
-
DeliveryTraefik forwards unsanitized X_Forwarded_* to auth backend
-
ExploitBackend normalizes header names
-
ExecutionSpoofed trust context satisfies auth checks
-
ImpactAccess granted to protected route
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Anti-spoofing controls
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires Traefik deployment with ForwardAuth middleware or snippet-based authentication configured AND an authentication backend that performs header name normalization treating underscore and dash variants equivalently (e.g., frameworks following CGI conventions where HTTP_X_FORWARDED_PROTO and HTTP_X-FORWARDED-PROTO map to the same environment variable). The authentication logic must make trust decisions based on forwarded headers rather than exclusively on session tokens or other credentials. Network access to Traefik-proxied endpoints is required but exploitation is unauthenticated. Limiting factors: deployments using alternative Traefik authentication methods (BasicAuth, DigestAuth, OAuth without ForwardAuth) are not vulnerable; backends with strict header parsing that reject underscore variants or ignore non-canonical header names are not exploitable; configurations where authentication backends do not rely on forwarded headers for trust decisions remain protected despite vulnerable Traefik versions. |
| Impact | This represents a genuine authentication bypass with serious real-world implications despite missing formal CVSS scoring. The attack requires no authentication, works remotely (network accessible ForwardAuth endpoints), and has low complexity - attackers need only craft HTTP requests with underscore-variant headers. The vendor-confirmed advisory with detailed technical disclosure and specific code references demonstrates this is not theoretical. Risk severity depends critically on deployment context: organizations using ForwardAuth with backends that normalize header names face direct authentication bypass exposure, while those using different auth patterns or backends with strict header parsing remain unaffected. The vulnerability is exploitable only when two conditions align: Traefik uses ForwardAuth/snippet auth AND the backend normalizes underscore/dash header variants. No CISA KEV listing or EPSS data available yet given the recent disclosure timeframe, but the low attack complexity and authentication bypass impact warrant immediate assessment. Patch availability across all affected major versions (2.x, 3.6.x, 3.7.x) indicates vendor-recognized severity. Security teams should verify whether their authentication backends perform header normalization before dismissing this based on missing CVSS alone - absence of scoring does not reduce technical risk for vulnerable configurations. |
| Exploit ScenarioDerived | An attacker identifies a Traefik-proxied application using ForwardAuth with an authentication service that normalizes HTTP header names (common in Python WSGI, PHP, or Ruby frameworks). The attacker crafts an HTTP request to a protected endpoint including X_Forwarded_Proto: https and X_Forwarded_Host: trusted.internal.domain headers. Traefik's ingress sanitization strips canonical X-Forwarded-Proto if present but forwards the underscore variant X_Forwarded_Proto unchanged to the authentication backend. The backend's header normalization treats X_Forwarded_Proto as equivalent to X-Forwarded-Proto, satisfying trust checks that verify HTTPS scheme or trusted hostname. The authentication service returns success, and Traefik grants access to the protected resource without requiring valid credentials, allowing the attacker to access sensitive internal APIs or administrative interfaces. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 24, 2026
Authentication bypass in Traefik Proxy's ForwardAuth and snippet-based authentication middleware allows remote unauthenticated attackers to access protected routes by exploiting incomplete header sanitization. Traefik sanitizes canonical forwarded headers (X-Forwarded-Proto) but fails to strip underscore-based aliases (X_Forwarded_Proto). When authentication backends normalize these header variants equivalently, attackers can inject spoofed trust context through alias headers to satisfy authentication checks without valid credentials. Patches released for versions 2.11.43, 3.6.14, and 3.7.0-rc.2. No public exploit identified at time of analysis, though the detailed technical disclosure in the GitHub advisory provides sufficient implementation details for reproduction.
RemediationAI
Upgrade immediately to patched versions: Traefik v2.11.43 for v2.x deployments, v3.6.14 for v3.6.x deployments, or v3.7.0-rc.2 for v3.7.x pre-release users. Download from official GitHub releases at https://github.com/traefik/traefik/releases. The patches implement comprehensive header canonicalization that strips both canonical and underscore-variant forwarded headers before regenerating them from trusted sources. For environments where immediate patching is not feasible, implement compensating controls at the authentication backend layer: configure strict header parsing that rejects underscore variants or implement explicit allowlisting of only canonical header names. Authentication backends should validate that critical trust headers (X-Forwarded-Proto, X-Forwarded-Host) use only dash-separated canonical forms. Note this workaround shifts trust validation to the backend and may break legitimate clients if underscore headers are used elsewhere; test thoroughly before production deployment. Consider placing an additional WAF or request filter in front of Traefik to block requests containing X_Forwarded_* patterns, though this adds latency and complexity. No workaround fully substitutes for patching - the fundamental trust boundary issue requires the vendor fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 6 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability stems from inconsistent trust boundary enforcement between Traefik's ingress header handling and ForwardAuth subrequest construction. Traefik implements a fixed allowlist of canonical forwarded headers (X-Forwarded-Proto, X-Forwarded-For, X-Forwarded-Host, X-Forwarded-Port) for sanitization but lacks normalization logic for semantically equivalent underscore variants. The ForwardAuth middleware copies nearly all client headers to authentication subrequests using utils.CopyHeaders(), filtering only hop-by-hop headers without canonicalizing header names. This creates a normalization mismatch: when downstream authentication services treat X_Forwarded_Proto and X-Forwarded-Proto as equivalent (common in frameworks that normalize header names per HTTP/CGI conventions), attacker-controlled alias headers can override Traefik-sanitized canonical headers. The root cause maps to CWE-290 (Authentication Bypass by Spoofing) where the trust decision depends on client-controllable metadata that undergoes inconsistent validation across system boundaries. Similar patterns exist in snippet-based authentication middleware, indicating systemic header handling gaps rather than isolated implementation flaws.
Know when Canonical gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
Sources disagree (Low–High)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.
CVSS VectorVendor: https://github.com/traefik/traefik
Lifecycle Timeline
4DescriptionCVE.org
Summary
There is a high severity authentication bypass vulnerability in Traefik's ForwardAuth and snippet-based authentication middleware. Traefik's forwarded-header sanitization logic targets only canonical header names (e.g., X-Forwarded-Proto) and does not strip or normalize alias variants that use underscores instead of dashes (e.g., X_Forwarded_Proto). These unsanitized alias headers are forwarded intact to the authentication backend. When the backend normalizes underscore and dash header forms equivalently, an attacker can inject spoofed trust context - such as a trusted scheme or host - through the alias headers and bypass authentication on protected routes without valid credentials.
Patches
- https://github.com/traefik/traefik/releases/tag/v2.11.43
- https://github.com/traefik/traefik/releases/tag/v3.6.14
- https://github.com/traefik/traefik/releases/tag/v3.7.0-rc.2
For more information
If there are any questions or comments about this advisory, please open an issue.
<details> <summary>Original Description</summary>
Summary
An authentication bypass arises from chaining two bugs: incomplete forwarded-header sanitization at ingress and overly permissive header forwarding in pre-auth subrequests. While canonical X-Forwarded-* headers are handled, alias variants (e.g., underscore forms) are neither normalized nor stripped consistently. When downstream auth services normalize these headers, attackers can inject trusted context and bypass authentication on protected routes without credentials.
Details
This issue results from the interaction between forwarded-header handling and auth subrequest construction, creating a trust boundary mismatch.
At ingress, Traefik defines a fixed set of canonical forwarded headers (X-Forwarded-Proto, X-Forwarded-For, etc.):
Reference : pkg/middlewares/forwardedheaders/forwarded_header.go#L29-L36
var xHeaders = []string{
xForwardedProto,
xForwardedFor,
xForwardedHost,
xForwardedPort,This logic focuses exclusively on canonical header names and does not account for alias forms such as X_Forwarded_Proto. As a result, while standard headers may be sanitized or rewritten, semantically equivalent variants can pass through unchanged.
During ForwardAuth processing, request headers are copied wholesale into the auth subrequest:
Reference : pkg/middlewares/auth/forward.go#L401-L408
utils.CopyHeaders(forwardReq.Header, req.Header)
RemoveConnectionHeaders(forwardReq)
utils.RemoveHeaders(forwardReq.Header, hopHeaders...)This implementation forwards nearly all client-supplied headers to the auth backend, with filtering limited to hop-by-hop headers. There is no normalization or deduplication between canonical and alias header forms, meaning attacker-controlled headers can reach the auth service intact.
A similar pattern exists in snippet-based auth:
Reference : pkg/middlewares/ingressnginx/snippet/snippet.go#L574-L581
utils.CopyHeaders(forwardReq.Header, req.Header)
RemoveConnectionHeaders(forwardReq)
utils.RemoveHeaders(forwardReq.Header, hopHeaders...)Again, headers are forwarded without enforcing a consistent trust model or canonicalization.
The vulnerability emerges when the auth backend normalizes header names (e.g., treating X_Forwarded_Proto and X-Forwarded-Proto equivalently). In that case:
- Traefik sanitizes only canonical headers.
- Alias headers remain attacker-controlled.
- The auth service merges or evaluates these aliases during normalization.
- Trust predicates (e.g., scheme = HTTPS, trusted host) are satisfied using spoofed values.
This allows a single crafted request to simultaneously bypass ingress trust enforcement and satisfy authentication checks, resulting in unauthorized access to protected backends.
PoC
- Configure a protected route using ForwardAuth or snippet-based auth, with an auth backend that normalizes header names (underscore ↔ dash).
- Send a control request (expected: denied):
GET / HTTP/1.1
Host: target.local
User-Agent: poc-control
Connection: close- Send an exploit request with alias headers (expected: allowed):
GET /protected HTTP/1.1
Host: app.example.local
X_Forwarded_Proto: https
X_Forwarded_Host: trusted.example
Connection: closeImpact
This vulnerability allows unauthenticated attackers to bypass authentication at the proxy-to-auth boundary by injecting spoofed trust context through header aliases. In deployments where authorization decisions depend on forwarded headers, attackers can access protected endpoints and interact with backend services as if they were fully authenticated. This effectively undermines ForwardAuth and similar mechanisms, potentially exposing sensitive internal functionality and data.
Suggested Remediation
- Strip and regenerate both canonical and alias forms of forwarded headers consistently at ingress and during auth subrequests.
- Apply a unified normalization policy across all forwarded header families (including RFC7239 and
X-Forwarded-*). - Restrict which headers are forwarded to auth services (prefer explicit allowlists).
- Add regression tests covering alias normalization inconsistencies across common backend frameworks.
</details>
---
Executive ViewAI
Traefik Proxy versions prior to 2.11.43, 3.6.14, and 3.7.0-rc.2 contain an authentication bypass vulnerability that allows unauthenticated attackers to access protected routes by exploiting incomplete header sanitization in ForwardAuth and snippet-based authentication middleware. Organizations using affected Traefik versions face immediate risk of unauthorized access to applications and APIs protected by these authentication mechanisms, potentially exposing sensitive data and internal services to external attackers.
If immediate patching is not feasible: (1) Implement Web Application Firewall (WAF) rules to block requests containing underscore-based header variants (X_Forwarded_*) before they reach Traefik; (2) Configure authentication backends to reject or log requests with non-canonical forwarded headers; (3) Restrict Traefik proxy access to internal networks only until patching is completed; (4) Enable comprehensive request logging and establish monitoring alerts for header anomalies. These controls reduce but do not eliminate risk-vendor patch application remains mandatory.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.
When running Apache Tomcat versions 9.0.0.M1 to 9.0.0, 8.5.0 to 8.5.22, 8.0.0.RC1 to 8.0.46 and 7.0.0 to 7.0.81 with HTT
Remote code execution is possible with Apache Tomcat before 6.0.48, 7.x before 7.0.73, 8.x before 8.0.39, 8.5.x before 8
GNU Bash through 4.3 bash43-025 processes trailing strings after certain malformed function definitions in the values of
The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packe
Race condition in mm/gup.c in the Linux kernel 2.x through 4.x before 4.8.3 allows local users to gain privileges by lev
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 17 and earlier, and
Local privilege escalation in the GNU C Library (glibc) dynamic loader ld.so allows unprivileged local users on affected
EUVD-2026-26427
GHSA-5m6w-wvh7-57vm
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB