Skip to content
OpenAdvisories
High · 7.8 CVE-2026-40912 EUVD-2026-26428GHSA-6jwx-7vp4-9847GO-2026-5180

Traefik: StripPrefixRegex auth bypass via Path/RawPath desync

Published Apr 30, 2026 · Updated Jul 15, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
traefik traefik < 2.11.43, >= 3.0.0-beta1, < 3.6.14, >= 3.7.0-ea.1, < 3.7.0-rc.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed traefik 3.6.15-1.1 openSUSE-SU-2026:10697-1
openSUSE Tumbleweed traefik2 2.11.44-1.1 openSUSE-SU-2026:10698-1
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/traefik/traefik <= 1.7.34 — GHSA-6jwx-7vp4-9847
Go github.com/traefik/traefik all versions — GO-2026-5180
Go github.com/traefik/traefik/v2 < 2.11.43 2.11.43 GHSA-6jwx-7vp4-9847
Go github.com/traefik/traefik/v3 >= 3.7.0-ea.1, < 3.7.0-rc.2 3.7.0-rc.2 GHSA-6jwx-7vp4-9847
Go github.com/traefik/traefik/v3 >= 3.0.0-beta1, < 3.6.14 3.6.14 GHSA-6jwx-7vp4-9847
Go github.com/traefik/traefik/v3 >= 3.0.0-beta1, < 3.6.14 · >= 3.7.0-ea.1, < 3.7.0-rc.2 3.6.14, 3.7.0-rc.2 GO-2026-5180

Advisories 3

References