CVE-2026-40912
Description
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.
Weakness
- CWE-706: Use of Incorrectly-Resolved Name or Reference
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2026-05-01 |
Timeline
- 2026-04-24GitHub advisory published (GHSA-6jwx-7vp4-9847)6 days before publication
- 2026-04-30Published by the CNA20:38 UTC
- 2026-05-01CISA SSVC decision recorded1 day after publication
Exploit and advisory records
GitHub advisory GHSA-6jwx-7vp4-9847, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Go github.com/traefik/traefik | through 1.7.34 | |
| Go github.com/traefik/traefik/v2 | before 2.11.43 | 2.11.43 |
| Go github.com/traefik/traefik/v3 | from 3.0.0-beta1 before 3.6.14 | 3.6.14 |
| Go github.com/traefik/traefik/v3 | from 3.7.0-ea.1 before 3.7.0-rc.2 | 3.7.0-rc.2 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| traefik traefik | before 2.11.43fixed in 2.11.43from 3.0.0 before 3.6.14fixed in 3.6.143.7.0no fix listed | 2.11.433.6.14not listed |
References
- https://github.com/traefik/traefik/security/advisories/GHSA-6jwx-7vp4-9847
- 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/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://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40912.json
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-40912'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-40912'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-40912'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-40912'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).