Skip to main content

Traefik Proxy CVE-2026-39858

| EUVDEUVD-2026-26427 HIGH
Authentication Bypass by Spoofing (CWE-290)
2026-04-24 https://github.com/traefik/traefik GHSA-5m6w-wvh7-57vm
High
Disputed · 7.8 Vendor: https://github.com/traefik/traefik
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send HTTP request with underscore-variant headers
  2. Delivery
    Traefik forwards unsanitized X_Forwarded_* to auth backend
  3. Exploit
    Backend normalizes header names
  4. Execution
    Spoofed trust context satisfies auth checks
  5. Impact
    Access 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

traefik 3.7.0-ea.1, < 3.7.0-rc.2
traefik 3.0.0-beta1, < 3.6.14
traefik < 2.11.43

Affected Packages

go github.com/traefik/traefik no fix
go github.com/traefik/traefik/v2 fix: 2.11.43
go github.com/traefik/traefik/v3 fix: 3.6.14, 3.7.0-rc.2
euvd traefik fix: 2.11.43
euvd traefik_3_0_0_beta1 fix: 3.6.14
euvd traefik_3_7_0_ea_1 fix: 3.7.0-rc.2

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)
Vendor (https://github.com/traefik/traefik) PRIMARY 7.8 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
SUSE 3.1 LOW
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Red Hat 8.2 HIGH

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
None

Lifecycle Timeline

4
Patch released
May 01, 2026 - 17:44 nvd
Patch available
Patch available
Apr 30, 2026 - 22:02 EUVD
CVSS changed
Apr 30, 2026 - 21:22 NVD
7.8 (HIGH)
CVE Published
Apr 24, 2026 - 16:32 nvd
HIGH 7.8

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

go
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

go
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

go
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

  1. Configure a protected route using ForwardAuth or snippet-based auth, with an auth backend that normalizes header names (underscore ↔ dash).
  2. Send a control request (expected: denied):
http
GET / HTTP/1.1
Host: target.local
User-Agent: poc-control
Connection: close
  1. Send an exploit request with alias headers (expected: allowed):
http
GET /protected HTTP/1.1
Host: app.example.local
X_Forwarded_Proto: https
X_Forwarded_Host: trusted.example
Connection: close

Impact

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

  1. Strip and regenerate both canonical and alias forms of forwarded headers consistently at ingress and during auth subrequests.
  2. Apply a unified normalization policy across all forwarded header families (including RFC7239 and X-Forwarded-*).
  3. Restrict which headers are forwarded to auth services (prefer explicit allowlists).
  4. Add regression tests covering alias normalization inconsistencies across common backend frameworks.

</details>

---

Executive ViewAI

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.0%
Top 92% exploitable
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Partial

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2019-11043 CRITICAL POC
9.8 Oct 28

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

CVE-2014-6271 CRITICAL POC
9.8 Sep 24

GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2016-3714 HIGH POC
8.4 May 05

The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.

CVE-2017-12617 HIGH POC
8.1 Oct 04

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

CVE-2016-8735 CRITICAL POC
9.8 Apr 06

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

CVE-2014-7169 CRITICAL POC
9.8 Sep 25

GNU Bash through 4.3 bash43-025 processes trailing strings after certain malformed function definitions in the values of

CVE-2014-0160 HIGH POC
7.5 Apr 07

The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packe

CVE-2016-5195 HIGH POC
7.0 Nov 10

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

CVE-2013-2423 LOW POC
3.7 Apr 17

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 17 and earlier, and

CVE-2023-4911 HIGH POC
7.8 Oct 03

Local privilege escalation in the GNU C Library (glibc) dynamic loader ld.so allows unprivileged local users on affected

Vendor StatusVendor

SUSE

Severity: Low

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy