Traefik: StripPrefixRegex auth bypass via Path/RawPath desync
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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 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. This issue has been patched in versions 2.11.43, 3.6.14, and 3.7.0-rc.2.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| traefik | traefik | before 2.11.43; 3.0.0-beta1 to before 3.6.14; 3.7.0-ea.1 to before 3.7.0-rc.2 | 2.11.43, 3.6.14, 3.7.0-rc.2 | Patch available | CNA |
| — | github.com/traefik/traefik/v3 (Go) | 3.7.0-ea.1 to before 3.7.0-rc.2 | 3.7.0-rc.2 | Patch available | GHSA-6jwx-7vp4-9847 |
| — | github.com/traefik/traefik/v3 (Go) | 3.0.0-beta1 to before 3.6.14 | 3.6.14 | Patch available | GHSA-6jwx-7vp4-9847 |
| — | github.com/traefik/traefik/v2 (Go) | before 2.11.43 | 2.11.43 | Patch available | GHSA-6jwx-7vp4-9847 |
| — | github.com/traefik/traefik (Go) | up to 1.7.34 | — | No fix listed | GHSA-6jwx-7vp4-9847 |
- traefik Vendortraefik Affected before 2.11.43; 3.0.0-beta1 to before 3.6.14; 3.7.0-ea.1 to before 3.7.0-rc.2 Fixed in 2.11.43, 3.6.14, 3.7.0-rc.2 Patch available CNA
- github.com/traefik/traefik/v3 (Go) Vendor— Affected 3.7.0-ea.1 to before 3.7.0-rc.2 Fixed in 3.7.0-rc.2 Patch available GHSA-6jwx-7vp4-9847
- github.com/traefik/traefik/v3 (Go) Vendor— Affected 3.0.0-beta1 to before 3.6.14 Fixed in 3.6.14 Patch available GHSA-6jwx-7vp4-9847
- github.com/traefik/traefik/v2 (Go) Vendor— Affected before 2.11.43 Fixed in 2.11.43 Patch available GHSA-6jwx-7vp4-9847
- github.com/traefik/traefik (Go) Vendor— Affected up to 1.7.34 Fixed in — No fix listed GHSA-6jwx-7vp4-9847
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:traefik:traefik:*:*:*:*:*:*:*:* | before 2.11.43; 3.0.0 to before 3.6.14 | Vulnerable | traefik |
| cpe:2.3:a:traefik:traefik:3.7.0:ea1:*:*:*:*:*:* | 3.7.0 ea1 | Vulnerable | traefik |
| cpe:2.3:a:traefik:traefik:3.7.0:ea2:*:*:*:*:*:* | 3.7.0 ea2 | Vulnerable | traefik |
| cpe:2.3:a:traefik:traefik:3.7.0:ea3:*:*:*:*:*:* | 3.7.0 ea3 | Vulnerable | traefik |
| cpe:2.3:a:traefik:traefik:3.7.0:rc1:*:*:*:*:*:* | 3.7.0 rc1 | Vulnerable | traefik |
- cpe:2.3:a:traefik:traefik:*:*:*:*:*:*:*:* Versions before 2.11.43; 3.0.0 to before 3.6.14 Vulnerable ·traefik
- cpe:2.3:a:traefik:traefik:3.7.0:ea1:*:*:*:*:*:* Versions 3.7.0 ea1 Vulnerable ·traefik
- cpe:2.3:a:traefik:traefik:3.7.0:ea2:*:*:*:*:*:* Versions 3.7.0 ea2 Vulnerable ·traefik
- cpe:2.3:a:traefik:traefik:3.7.0:ea3:*:*:*:*:*:* Versions 3.7.0 ea3 Vulnerable ·traefik
- cpe:2.3:a:traefik:traefik:3.7.0:rc1:*:*:*:*:*:* Versions 3.7.0 rc1 Vulnerable ·traefik
Remediation
- Fix · CNA traefik (traefik) Fixed in 2.11.43, 3.6.14, 3.7.0-rc.2
- Fix · GHSA-6jwx-7vp4-9847 github.com/traefik/traefik/v3 (Go) Fixed in 3.7.0-rc.2 Advisory →
- Fix · GHSA-6jwx-7vp4-9847 github.com/traefik/traefik/v3 (Go) Fixed in 3.6.14 Advisory →
- Fix · GHSA-6jwx-7vp4-9847 github.com/traefik/traefik/v2 (Go) Fixed in 2.11.43 Advisory →
Red Hat 1 advisory
- RHSA-2026:21772 Released 2026-05-28 · Red Hat rating ImportantRed Hat OpenShift Dev Spaces 3.28.0 Release.
- Red Hat OpenShift Dev Spaces 3.28 registry.redhat.io/devspaces/code-rhel9, registry.redhat.io/devspaces/dashboard-rhel9, registry.redhat.io/devspaces/openvsx-rhel9 +3
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift Dev Spaces 3.28 | Fixed | RHSA-2026:21772 |
Not affected: 1 product
- Red Hat OpenShift Dev Spaces 3.28
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40912
- 2026-10-03 Alias added: GHSA-6jwx-7vp4-9847
References
Other 8
- 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
- https://access.redhat.com/errata/RHSA-2026:21772
- https://access.redhat.com/security/cve/CVE-2026-40912
- https://bugzilla.redhat.com/show_bug.cgi?id=2464229
- https://github.com/traefik/traefik
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40912.json
More Traefik vulnerabilities
- TI-2023-23979 The HTTP/2 protocol allows a denial of service (server resource consumption) because… KEVCVSS 3.1HIGH 7.5
- TI-2023-25774 Uncontrolled Resource Consumption in Traefik CVSS 3.1HIGH 7.5
- TI-2025-40914 Traefik doesn't Prevent Path Normalization Bypass in Router + Middleware Rules CVSS 4.0MEDIUM 6.9
- TI-2022-07529 Authorization header displayed in the debug logs CVSS 3.1MEDIUM 6.5
- TI-2024-30459 HTTP client can remove the X-Forwarded headers in Traefik CVSS 3.1CRITICAL 9.8
- TI-2026-60261 Traefik v3.7.0 Authentication Bypass via from-to-www-redirect CVSS 4.0CRITICAL 9.3
Sources
- CVE-2026-40912 · CVE Program
- CVE-2026-40912 · NVD
- FIRST EPSS
- GHSA-6jwx-7vp4-9847 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-40912 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences