Vulnerability · Published Apr 30, 2026 · Assigned by GitHub_M
CVE-2026-40912Traefik: StripPrefixRegex auth bypass via Path/RawPath desync
High 8.6
In plain English
A high-severity path traversal in traefik from traefik. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/traefik/traefik | no fix listed | GHSA-6jwx-7vp4-9847 |
| Go | github.com/traefik/traefik | no fix listed | GO-2026-5180 |
| Go | github.com/traefik/traefik/v2 | 2.11.43 | GHSA-6jwx-7vp4-9847 |
| Go | github.com/traefik/traefik/v2 | 2.11.43 | GO-2026-5180 |
| Go | github.com/traefik/traefik/v3 | 3.7.0-rc.2 | GHSA-6jwx-7vp4-9847 |
| Go | github.com/traefik/traefik/v3 | 3.6.14, 3.7.0-rc.2 | GO-2026-5180 |
| Go | github.com/traefik/traefik/v3 | 3.6.14 | GHSA-6jwx-7vp4-9847 |
Affected products (as reported)
Weakness: CWE-706, CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
References
- https://github.com/traefik/traefik/security/advisories/GHSA-6jwx-7vp4-9847 x_refsource_CONFIRM
- https://github.com/traefik/traefik/releases/tag/v2.11.43 x_refsource_MISC
- https://github.com/traefik/traefik/releases/tag/v3.6.14 x_refsource_MISC
- https://github.com/traefik/traefik/releases/tag/v3.7.0-rc.2 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-40912 vdb-entry, x_refsource_REDHAT
- RHBZ#2464229 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40912.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:21772 vendor-advisory, x_refsource_REDHAT