Sep 11, 2026·5 min read·1 visit
Unauthenticated attackers can bypass Traefik's entrypoint header filters (like X-Forwarded-For stripping) by smuggling security-sensitive headers in HTTP trailers. When Traefik's buffering or retry middlewares parse the request, the trailer values bypass sanitization and are forwarded to backends, which may trust and process them as authenticated headers.
An interpretation conflict and security bypass vulnerability in the entrypoint security mechanisms of Traefik allows unauthenticated remote attackers to bypass header-name sanitization and strip/reject policies. By smuggling sensitive, protected, or trusted header names inside an HTTP/1.1 chunked trailer or an HTTP/2 trailer, attackers can bypass Traefik's security defenses if a downstream backend merges trailers into the header namespace.
Traefik features built-in entrypoint middlewares designed to clean, sanitize, and validate incoming HTTP headers before requests are forwarded to internal backend endpoints. These defenses include forwardedHeaders (which strips potentially spoofed forwarding headers), aliasHeadersStrategy (which rejects conflicting header aliases), and underscoreHeadersStrategy (which drops headers containing underscore characters).
The vulnerability is exposed when Traefik is deployed with body-buffering or retry middlewares alongside these sanitization policies. Under this configuration, unauthenticated remote attackers can bypass header-based entrypoint security filters completely.
The flaw is classified under CWE-436 (Interpretation Conflict) and CWE-807 (Reliance on Untrusted Inputs in a Security Decision). This allows malicious actors to smuggle security-sensitive configurations past the edge proxy, resulting in subsequent privilege escalation and trust spoofing on downstream applications.
The core flaw is an interpretation conflict between how Traefik handles HTTP headers and how Go's standard library net/http package processes HTTP trailers. Under standard specifications, request trailers arrive at the absolute end of the request body, after the initial HTTP headers have been parsed and evaluated.
Traefik's entrypoint security middlewares inspect only the initial HTTP headers (req.Header) because trailers are not yet populated when routing begins. However, when buffering or retry middlewares are active, they must read the entire request body to memory or disk prior to routing. This is accomplished using standard library calls such as io.ReadAll(req.Body).
This read operation automatically forces the underlying Go parser to read the chunked request trailers and populate the req.Trailer map. When Traefik clones and forwards this request, it includes these parsed trailers. If a downstream backend web server or application framework automatically merges HTTP trailers into the main HTTP header namespace (such as for CGI compliance), the smuggled values bypass the edge proxy filters and are processed as trusted headers.
The vulnerable proxy implementation failed to strip parsed trailers from the outgoing cloned request. The patch resolves this by iterating over the keys in the outgoing request trailer map (pr.Out.Trailer) and setting their values to nil before the request is processed by the transport layer.
This fix is implemented in pkg/proxy/httputil/proxy.go. Setting values to nil conforms to RFC 9112 Section 7.1.2 by stripping values, while keeping the keys preserves metadata hints as outlined in RFC 9110 Section 6.6.2.
The following diff demonstrates the implemented fix within the proxy builder request rewriter:
// pkg/proxy/httputil/proxy.go
// Forward the declared request trailer names, but never their values: they arrive
// after the header section, once routing and security decisions are made, and would
// otherwise reach the backend under a name sanitized in the header section.
// Discarding them is allowed by https://www.rfc-editor.org/rfc/rfc9112#section-7.1.2,
// and the names are kept as the hint of what was dropped described in
// https://www.rfc-editor.org/rfc/rfc9110#section-6.6.2
// Emptying the outgoing map is what makes this hold whatever the middleware chain did
// to the incoming request, as the transport only writes pr.Out.Trailer.
// Response trailers are unaffected.
for name := range pr.Out.Trailer {
pr.Out.Trailer[name] = nil
}Exploiting this flaw requires three primary conditions: Traefik must execute body-buffering or retry middleware, the targeted upstream backend must merge trailers into the header namespace, and the backend must make trust decisions based on those headers.
An attacker crafts an HTTP/1.1 or HTTP/2 request targeting an entrypoint protected by Traefik. The header section contains harmless metadata, but the request body includes a trailer payload carrying sensitive security keys.
When Traefik's buffering mechanism executes, Go's parser extracts the trailer content. The proxy forwards the completed request structure downstream. The backend parses the incoming trailer payload and updates its local header registry, overwriting previous security filters.
For example, an attacker can smuggle an X-Forwarded-For: 127.0.0.1 payload inside an HTTP chunked trailer:
POST /secure-endpoint HTTP/1.1
Host: vulnerable-app.com
Transfer-Encoding: chunked
Trailer: X-Forwarded-For
9
body data
0
X-Forwarded-For: 127.0.0.1The security impact of this vulnerability is high in environments where internal routing, authentication, or authorization rely on reverse proxy headers. Bypassing entrypoint filters allows attackers to bypass IP blocklists, spoof origins, or inject administrative header values.
The vulnerability is assigned a CVSS v4.0 score of 7.0. The attack vector is Network, and attack complexity is classified as High because it requires specific backend merger behaviors and Traefik middleware configurations.
While Traefik itself is not compromised, the downstream systems are exposed to unauthorized privilege escalation. No known in-the-wild exploitation is documented at this time, but proof-of-concept coverage has been established in regression testing suites.
The primary remediation strategy is upgrading Traefik to version v3.7.13 or newer. This version implements explicit trailer clearing to block values from traversing downstream boundaries.
When immediate patching is unfeasible, administrators should review downstream application environments. Disabling automatic trailer merging at the backend server (e.g., within application frameworks or reverse proxy agents) stops the attack at the destination layer.
Additionally, organizations should avoid authentication strategies that depend solely on the existence of a specific header. Validating header values against cryptographic tokens or signatures provides defense-in-depth security.
> [!NOTE]
> While Traefik v3.7.13 strips trailer values, it still forwards trailer keys set to nil to conform to RFC 9110 metadata guidelines. Systems checking only the presence of a header key remain vulnerable to empty-value spoofing.
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N| Product | Affected Versions | Fixed Version |
|---|---|---|
Traefik Traefik | >= 3.2.0, < 3.7.13 | v3.7.13 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-436 / CWE-807 |
| Attack Vector | Network |
| CVSS v4.0 Score | 7.0 (High) |
| Exploit Status | poc |
| CISA KEV Status | Not Listed |
| Patch Status | Patched in v3.7.13 |
This weakness occurs when two security or transport entities interpret an HTTP request or its fields differently, leading to a bypass of security filters.
CVE-2026-88007 is a critical vulnerability in Traefik where connection-bound backend authentication (like NTLM or Kerberos) is compromised over HTTP/3. Due to an uninitialized connection transport context, authenticated TCP sockets from a victim are leaked into a globally shared pool and subsequently reused by unrelated clients, leading to unauthenticated session hijacking.
An architectural flaw in the Traefik reverse proxy allows unauthenticated remote attackers to bypass security middlewares (such as basic authentication, IP allowlists, and forward authorization) by initiating an unencrypted HTTP/2 (h2c) upgrade request, causing the proxy to transition the connection into an opaque bi-directional TCP tunnel.
An incorrect authorization vulnerability in Open WebUI allows users to bypass Identity Provider (IdP) role revocations and demotions. Prior to version 0.11.1, the OAuth token exchange endpoint failed to execute user synchronization and group mapping checks, enabling users with active provider tokens to establish sessions with their cached, stale database roles.
CVE-2026-88016 is a high-severity directory traversal and arbitrary metadata modification vulnerability in rclone versions prior to 1.75.1. When synchronizing directories with the `--links` and `--metadata` flags, rclone fails to apply sandboxing to directory metadata operations, leading to symbolic link following that allows modification of arbitrary files outside the target destination.
An unbounded resource consumption and server-side request forgery (SSRF) vulnerability in mistral.rs allows remote, unauthenticated attackers to cause a denial of service (DoS) or execute SSRF attacks. The flaw exists in mistralrs-server-core due to unchecked remote media fetching, infinite stream buffering, and unbounded FFmpeg frame extraction.
A critical sandbox escape vulnerability exists in the legacy expression engine of n8n. By leveraging Shared Builtin Tampering combined with Code-Printer Injection, an authenticated attacker can hijack the mutable global JSON.stringify function. This hijacking allows the attacker to inject arbitrary Node.js source code into internal execution contexts during code generation, escaping the isolated-vm sandbox and achieving full remote code execution on the host system.