Servers and applications
CVE-2026-40912
StripPrefixRegex auth bypass via Path/RawPath desync
- Severity
- High 7.8
- Published
- 24 Apr 2026
- Last changed
- 11 Nov 2026
- Added to UpHeron
- 1 Nov 2026
- Fixed in
- 2.11.43, 3.6.14
- Exploit chance
- 0.8% in the next 30 daysHigher than 56% of CVEs. EPSS by FIRST, 19 Nov 2026
- Weakness
- CWE-706Path traversal (CWE-22)
- Attack
- Over the network · No login needed · No user action needed
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X- Also known as
- GHSA-6jwx-7vp4-9847
- Sources
- NVD, Project advisories (GitHub)
Description
There is a high severity authentication bypass vulnerability in Traefik's StripPrefixRegex middleware when used in combination with ForwardAuth, BasicAuth, or DigestAuth. The middleware matches the regex against the decoded URL path but uses the resulting byte length to slice the percent-encoded raw path. When a dot (or multiple dots) appears in the prefix portion of the URL, the raw path after stripping becomes a dot-segment (e.g. /./admin/secret). ForwardAuth receives this dot-segment path in X-Forwarded-Uri, which does not match the protected path patterns and therefore allows the request through. The backend then normalizes the dot-segment to the real path per RFC 3986 and serves the protected content
An unauthenticated attacker can exploit this against any backend that performs dot-segment normalization.
StripPrefixRegex uses the byte length of a decoded Path match to slice the encoded RawPath.
Affected software
| Software | Affected versions |
|---|---|
TraefikServers and applications · cpe:a:traefik:traefik |
|
TraefikServers and applications · github:traefik/traefik |
|
About Traefik
HTTP reverse proxy and load balancer
- Docker Hub pulls
- 3,604,536,669Docker Hub, 15 Nov 2026
- GitHub stars
- 65,551GitHub, 15 Nov 2026
- Forks
- 6,312GitHub, 15 Nov 2026
- Latest release
- v3.7.19GitHub, 15 Nov 2026
- Released
- 13 Nov 2026GitHub
- License
- Expat licenseWikidata
- Written in
- GoWikidata
- First published on GitHub
- 13 Sept 2015GitHub
Website Source code Docker image
Release lines
| Release | Latest | Security fixes |
|---|---|---|
| 3.7 | 3.7.19 | Yes |
| 3.6 | 3.6.25 | Ended 16 Aug 2026 |
| 3.5 | 3.5.6 | Ended 7 Nov 2025 |
| 3.4 | 3.4.5 | Ended 23 Jul 2025 |
| 3.3 | 3.3.7 | Ended 5 May 2025 |
| 3.2 | 3.2.5 | Ended 6 Jan 2025 |
From endoflife.date.
Vulnerabilities in Traefik
- In our list
- 125
- Published in the last 12 months
- 95
- Critical, last 12 months
- 4
- High, last 12 months
- 58
- Known exploited
- 1
- CVE-2026-130732Traefik from 2.11.58 before 2.11.61 Denial of Service via NTLM/Negotiate HeadersHigh 8.7 18 Nov 2026
- GHSA-x5pf-cqh3-2gv8Unauthenticated memory-exhaustion DoS: the Compress middleware pins ~18 MiB of zstd encoder state per in-flight responseHigh 8.7 12 Nov 2026
- GHSA-rr42-h8r2-f28gUnbounded BasicAuth password length gives ~1857x CPU amplification through MD5-crypt, pre-authenticationMedium 6.3 12 Nov 2026
- GHSA-p956-6gvv-mxqpIncomplete fix for GHSA-hrpp-p4fc-wwf8 allows ForwardAuth NTLM authentication bypass via Proxy-AuthorizationHigh 7.0 12 Nov 2026
- GHSA-cp28-5662-543fsanitizePath does not remove path-parameter dot-segments (/..;x/), enabling path-based authorization bypassHigh 7.8 12 Nov 2026
- GHSA-ccgh-9g52-6vwgingress-nginx client certificate authentication (auth-tls-secret) verification bypass and Ssl-Client-* header spoofing on shared hostsHigh 7.0 12 Nov 2026
References
- NVD https://nvd.nist.gov/vuln/detail/CVE-2026-40912
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-40912
- GitHub Advisory Database https://github.com/advisories/GHSA-6jwx-7vp4-9847
- github.com https://github.com/traefik/traefik/security/advisories/GHSA-6jwx-7vp4-9847