CVE-2026-40912
github.com/traefik/traefik: Traefik: Authentication bypass via crafted URL dot-segments in StripPrefixRegex middleware
Overview
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.
Source: OX vulnerability database
Severity
8.2 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Weakness: CWE-706, CWE-22
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Go | github.com/traefik/traefik | <=1.7.34 | No fix yet |
| Go | github.com/traefik/traefik/v2 | <2.11.43 | 2.11.43 |
| Go | github.com/traefik/traefik/v3 | >=3.7.0-ea.1, <3.7.0-rc.2>=3.0.0-beta1, <3.6.14 | 3.7.0-rc.23.6.14 |
Open a package to see all its vulnerabilities.
Operating systems · 3 fixes
minimos 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| traefik-3 +1 | 3.6.14-r0 |
openSUSE 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | traefik2 | 2.11.44-1.1 | openSUSE-SU-2026:10698-1 |
| Tumbleweed | traefik | 3.6.15-1.1 | openSUSE-SU-2026:10697-1 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:21772
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-40912
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2464229
- github.com https://github.com/traefik/traefik
- github.com https://github.com/traefik/traefik/releases/tag/v2.11.43
- github.com https://github.com/traefik/traefik/releases/tag/v3.6.14
- github.com https://github.com/traefik/traefik/releases/tag/v3.7.0-rc.2
- github.com https://github.com/traefik/traefik/security/advisories/GHSA-6jwx-7vp4-9847
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-40912
- security.access.redhat.com https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40912.json
Show all 11 references
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.