CVE-2026-65600: Traefik: Authentication Bypass via Path Traversal in ReplacePathRegex Middleware
There is a critical authentication-bypass vulnerability in Traefik’s ReplacePathRegex middleware. When it is configured with a regular expression that captures user-controlled path segments without a mandatory separator (for example regex: "^/api(.*)", replacement: "/$1"), a crafted request can produce an un-normalized replacement path such as /../admin, which Traefik forwarded to the backend without validation. A backend that normalizes the path may resolve it to a protected route, letting an unauthenticated attacker reach resources located behind authentication middleware. This is the same class of issue that was fixed for StripPrefix in CVE-2026-48020; that post-replacement normalization check had not been applied to ReplacePathRegex. The fix rejects any request whose replaced path does not match its normalized form.
A path traversal vulnerability in the ReplacePathRegex middleware allows an unauthenticated remote attacker to bypass authentication middleware and access protected routes by sending a single crafted HTTP request. The vulnerability exists because ReplacePathRegex does not perform post-replacement path normalization validation - the same check added to StripPrefix in the fix for CVE-2026-48020 was not applied to ReplacePathRegex.
References
- github.com/advisories/GHSA-cxjq-mrr5-89rv
- github.com/traefik/traefik/commit/3f10dd442479530560f010167cac2947676d9b29
- github.com/traefik/traefik/releases/tag/v2.11.52
- github.com/traefik/traefik/releases/tag/v3.6.23
- github.com/traefik/traefik/releases/tag/v3.7.7
- github.com/traefik/traefik/security/advisories/GHSA-cxjq-mrr5-89rv
- nvd.nist.gov/vuln/detail/CVE-2026-65600
- www.vulncheck.com/advisories/traefik-before-authentication-bypass-via-replacepathregex
Code Behaviors & Features
Detect and mitigate CVE-2026-65600 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →