Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/traefik/traefik
  4. ›
  5. CVE-2026-65600

CVE-2026-65600: Traefik: Authentication Bypass via Path Traversal in ReplacePathRegex Middleware

August 6, 2026

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 →

Affected versions

All versions up to 1.7.34

Solution

Unfortunately, there is no solution available yet.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/traefik/traefik/CVE-2026-65600.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:47 +0000.