Traefik Authentication Bypass Vulnerability in StripPrefixRegex Middleware

Vulnerability

A high-severity authentication bypass vulnerability exists in Traefik's StripPrefixRegex middleware, specifically in versions through 2.11.42, 3.6.13, and 3.7.0-rc.1. The vulnerability arises when the middleware is used with ForwardAuth, BasicAuth, or DigestAuth. The issue occurs because the middleware matches regex against the decoded URL path but slices the percent-encoded raw path using the resulting byte length. This discrepancy can create a dot-segment path (e.g., /./admin/secret) when dots are present in the URL prefix. ForwardAuth then receives this dot-segment path in the X-Forwarded-Uri header, which bypasses the protected path patterns, allowing the request to be processed by the backend. The backend normalizes the dot-segment to the actual path according to RFC 3986 and serves the protected content. This vulnerability can be exploited by an unauthenticated attacker against any backend that normalizes dot-segments.

Impact

Exploitation of this vulnerability allows for authentication bypass, granting unauthorized access to protected resources or functionalities.

Remediation

Users can upgrade to Traefik versions 2.11.43, 3.6.14, or 3.7.0-rc.2 to address this vulnerability.

Added: Apr 30, 2026, 9:31 PM
Updated: Apr 30, 2026, 9:31 PM

Vulnerability Rating

Custom Algorithm
spread
7.6
impact
2.5
exploitability
7.9
remediation
7.7
relevance
7.1
threat
0.0
urgency
2.9
incentive
8.3

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.