CVE-2026-39858·Traefik vulnerability
Traefik is an HTTP reverse proxy and load balancer. Prior to versions 2.11.43, 3.6.14, and 3.7.0-rc.2, 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. This issue has been patched in versions 2.11.43, 3.6.14, and 3.7.0-rc.2.
- Severity
- critical
- Software
- Traefik
- Fixed in
- 3.6.14
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.61% — higher than 47% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-39858 scores 10 on CVSS, so a successful attack would be serious — but at 0.61%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 3.0.0
Until: 3.6.14
Fixed in: 3.6.14
How to fix this CVE
Upgrade Traefik immediately to version 3.6.14 or later to patch a critical authentication bypass flaw in ForwardAuth middleware. The vulnerability allows attackers to spoof authentication headers by exploiting underscore-based header variants that bypass normalization checks. After upgrading, restart your Traefik service and verify that ForwardAuth policies are re-evaluated against the authentication backend.
sudo dnf update traefikDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
GET|POST .* HTTP/1.1\r\n.*X_Forwarded_(Proto|Host|For|Url):WAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Block or normalize HTTP headers containing underscores that mimic canonical forwarded headers (X_Forwarded_*, X_Auth_*, etc.) before they reach the upstream authentication backend. Implement strict header validation to accept only dash-separated variants in ForwardAuth middleware configurations.How to check if you are affected
- Run 'traefik version' or check the binary with 'traefik --version' to confirm the installed version
- Inspect your Traefik configuration files (typically in /etc/traefik/ or docker labels) to identify services using ForwardAuth or snippet-based authentication middleware
- Search Traefik logs for patterns like 'X_Forwarded_Proto', 'X_Forwarded_Host', or other underscore-variant headers that may indicate header injection attempts: grep -i 'X_Forwarded' /var/log/traefik/traefik.log
- After patching, restart Traefik and test authentication by attempting to access a protected route with spoofed underscore headers (e.g., curl -H 'X_Forwarded_Proto: https' http://your-traefik-endpoint) and verify the request is denied
FAQ
What is CVE-2026-39858?
CVE-2026-39858 is a critical authentication bypass vulnerability in Traefik's ForwardAuth middleware that allows attackers to inject spoofed trust headers using underscore variants (X_Forwarded_Proto instead of X-Forwarded-Proto) that are not properly normalized or stripped before reaching the authentication backend.
Is CVE-2026-39858 being actively exploited?
According to CISA, CVE-2026-39858 is not currently listed on the Known Exploited Vulnerabilities (KEV) catalog and no public exploit code is available. However, the critical CVSS 10 score and ease of exploitation (network-accessible, no authentication required) make this a high-priority patch.
What versions of Traefik are affected by CVE-2026-39858?
Traefik versions 3.0.0 through 3.6.13 are vulnerable. Version 3.6.14 and later, as well as 2.11.43 and 3.7.0-rc.2 in their respective branches, contain the fix.
How do I check if my server is vulnerable to CVE-2026-39858?
Run 'traefik --version' and compare the output against version 3.6.14. If your version is below 3.6.14 (and not patched versions 2.11.43+), your server is vulnerable.
Does Defensia detect CVE-2026-39858?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Traefik is installed on a monitored server, CVE-2026-39858 will appear in your dashboard with remediation steps.
Related Traefik CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-39858. Free for 1 server.
Get started free