Automated Threat Modeling

Quick Look: Traefik CVE-2026-137481, a sanitizePath Authorization Bypass via Parameterized Dot Segments

A brief summary of CVE-2026-137481, an authorization bypass in Traefik where sanitizePath left parameterized dot segments such as /..;x/ unresolved. The post covers the root cause, the upstream patch, and detection guidance.

CVE Analysis

10 min read

Gaurav Sarraf
Gaurav Sarraf

2026-11-26

Quick Look: Traefik CVE-2026-137481, a sanitizePath Authorization Bypass via Parameterized Dot Segments

Introduction

In affected Traefik deployments, a single unauthenticated request such as /public/..;x/admin was enough to skip the authentication or authorization middleware guarding a protected route, as long as a parameter-stripping backend sat behind both a public and a protected router. Because Traefik commonly fronts Java applications running on Servlet containers or Spring, the flaw sits exactly where many teams place their access control decisions.

Traefik Proxy is a reverse proxy and ingress controller maintained by Traefik Labs, a company focused on application connectivity and API management for cloud-native architectures (it also builds Traefik Hub). Traefik Labs reports more than 3.4 billion Docker Hub downloads and more than 62,000 GitHub stars. These are vendor-published adoption indicators, not an independently measured market share. Platform vendors such as Nutanix use Traefik as their Kubernetes ingress, so it frequently runs as infrastructure embedded inside other products, not only as a standalone install.

The CVE record scores CVE-2026-137481 at 9.3 Critical under CVSS 3.1, while the vendor and NVD display 7.8 High under CVSS 4.0. Both are valid under their respective scoring versions, so we keep the version attached whenever we quote severity.

Technical information

Root cause

The sanitizePath entry point option is enabled by default. It is meant to resolve . and .. segments and remove duplicate slashes before Traefik makes any routing decision. Internally it relied on Go's url.URL.JoinPath(), which follows RFC 3986 dot-segment removal.

The gap is that JoinPath() only recognizes segments that are exactly .. or .. A segment such as ..;x, which is a dot segment carrying a path parameter, does not match, so it survives as an ordinary path component. In affected releases, Traefik then:

  1. Matched routers against the unresolved path.
  2. Applied middlewares (including authentication and authorization) based on that router match.
  3. Forwarded the same unresolved path to the backend.

Servlet containers, Spring and similar backends strip the ;x parameter and treat what remains as ... The proxy and the backend therefore resolve the same request to different resources. The CVE record classifies this as CWE-22 (improper limitation of a pathname to a restricted directory), and the vendor advisory also lists CWE-436 (interpretation conflict), which describes the disagreement between proxy and backend precisely.

Preconditions

The advisory does not claim every affected installation exposes protected resources. Exploitation requires all of the following:

  • sanitizePath enabled on the entry point (the default).
  • A backend that strips path parameters, such as a Servlet container or Spring.
  • That backend shared by an unauthenticated router and a router protected by authentication or authorization middleware.

Attack flow

Using the vendor's own example:

  1. The attacker targets an entry point where a public router (for example on /public) and a protected router (for example on /admin) forward to the same parameter-stripping backend.
  2. The attacker sends an unauthenticated request for /public/..;x/admin.
  3. On a vulnerable build, sanitizePath leaves ..;x in place, so the request matches the public router and no authentication middleware runs.
  4. Traefik forwards /public/..;x/admin unchanged to the backend.
  5. The backend strips ;x, resolves the remaining .., and serves /admin.

No credentials are required, and the request looks like ordinary traffic, so there is no crash or error to alert on.

Impact and scoring

  • CVE record, CVSS 3.1: 9.3 Critical, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N
  • CVE record and vendor, CVSS 4.0: 7.8 High, CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N
  • NVD currently displays the 7.8 High assessment supplied by VulnCheck and marks the record as awaiting enrichment.

The CVSS 4.0 metrics describe a network attack with low complexity, no privileges and no user interaction, with high confidentiality and low integrity impact on the subsequent system and no availability impact. This is an access control and information exposure issue. The sources do not support claims of remote code execution or service disruption.

Exploitation status

The advisory publishes a concrete request, but that is a disclosed method, not evidence of observed attacks. StackFlag describes the issue as not known to be exploited, and VulDB reports KEV status as "no" with activity rated "very low". No threat actor, campaign or victim is named in the reviewed disclosure. The reporter is credited as TristanInSec, and VulnCheck served as the CNA. Neither credit is attacker attribution.

Fixed releases shipped on November 10, 2026, the vendor advisory followed on November 12, 2026, and the CVE and NVD records were published on November 26, 2026.

Patch information

Traefik fixed this with a small, targeted change to the sanitizePath entry point middleware in PR #14188, which resolves dot segments and empty segments that carry path parameters. The PR was opened against the v2.11 branch and merged on November 3, 2026 as merge commit 67e4feb9bdeca926d69d116cae536cc516684226. The maintainer advisory GHSA-cp28-5662-543f lists the fixed releases:

  • github.com/traefik/traefik/v2: vulnerable at v2.11.61 and earlier, fixed in v2.11.62
  • github.com/traefik/traefik/v3: vulnerable from v3.0.0 through v3.7.17, fixed in v3.7.18
  • github.com/traefik/traefik/v3: vulnerable in v3.8.0-rc.1, fixed in v3.8.0-rc.2

The v2.11.62 release notes list GHSA-cp28-5662-543f under the CVE fixes and #14188 under the server bug fixes. The v3.0 through v3.6 lines are end of life and will not get a backport. For them, the advisory says the only fix is moving to a patched release.

What the fix does

Before calling JoinPath(), the patched code rewrites the three segment shapes that parameter-stripping backends collapse, so Traefik normalizes the path the same way the backend will. The added logic in pkg/server/server_entrypoint_tcp.go looks like this (excerpt from the upstream hunk, with the new code comments omitted):

func sanitizePath(h http.Handler) http.Handler { return http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) { r2 := new(http.Request) *r2 = *req if escapedPath := req.URL.EscapedPath(); strings.Contains(escapedPath, ";") { segments := strings.Split(escapedPath, "/") for i, segment := range segments { switch { case strings.HasPrefix(segment, "..;"): segments[i] = ".." case strings.HasPrefix(segment, ".;"): segments[i] = "." case strings.HasPrefix(segment, ";"): segments[i] = "" } } r2.URL = new(url.URL) *r2.URL = *req.URL r2.URL.RawPath = strings.Join(segments, "/") r2.URL.Path, _ = url.PathUnescape(r2.URL.RawPath) } // Cleans the URL raw path and path. r2.URL = r2.URL.JoinPath()

Step by step:

  1. Fast path. The rewrite only runs when the escaped path contains ;. Requests without one follow the same code path as before.
  2. Segment rewriting. The path is split on /. A segment starting with ..; becomes .., one starting with .; becomes ., and one starting with ; becomes empty. The empty case covers backends that treat /;x/ as a duplicate slash.
  3. Safe URL rebuild. Because *r2 = *req is only a shallow copy, the code copies the url.URL into a new struct before modifying it, so the URL shared with the original request is untouched. It sets RawPath to the rewritten string and Path to its unescaped form, keeping the two consistent.
  4. Existing cleanup. The unchanged JoinPath() call now receives plain .., . and empty segments and removes them. Routing, middleware evaluation and the upstream request all use the resolved path, so /public/..;x/admin becomes /admin and is matched against the router that protects /admin.

Scope of the fix

Only dot segments and empty segments lose their parameters. Matrix parameters on normal segments are preserved, and a new test confirms /a;x/b;y=z/ passes through unchanged. The fix applies only when sanitizePath is enabled (the default). With it turned off, the path is still forwarded as is. The reviewed sources offer no configuration-only workaround and do not recommend disabling sanitizePath.

The same releases also contain unrelated security fixes. The vendor's announcement describes a ForwardAuth-related header change as mitigation for a different issue. It is not a workaround for CVE-2026-137481.

Test coverage

The PR adds cases to TestPathOperations in pkg/server/server_entrypoint_tcp_test.go, each asserting the cleaned path, raw path and routing path:

  • /a/..;x/b/ becomes /b/
  • /a/%2E%2E;x;y/b/ becomes /b/ (percent-encoded dots with several parameters)
  • /a/.;x/b/ becomes /a/b/
  • /a/;x/b/ becomes /a/b/
  • /a/..;x/..;/.;y/;z/b/ becomes /b/ (chained variants)
  • /a/..;x/b%2Fc/ becomes /b/c/, with the encoded slash kept as /b%2Fc/ in the raw and routing paths
  • /a;x/b;y=z/ is unchanged

Behavior change for operators

The PR adds a section on dot segments with path parameters to the migration guide and new examples to the request path documentation. Upstream services now receive the resolved path: /foo/.;bar/baz arrives as /foo/baz, /foo/..;bar/baz as /baz, and /foo/;bar/baz as /foo/baz. If a backend expected the raw forms, check it after upgrading, although this is how the vulnerable backends already interpret those paths.

Detection methods

Detection comes down to three things: spotting the path shape, tying it to the router that handled it, and confirming whether a given deployment is exposed at all.

1. Access log hunting for parameterized dot segments

Traefik's access log records the request URI (without scheme, host or port) in RequestPath, the handling router and service in RouterName and ServiceName, the backend status in OriginStatus, and the status returned to the client after middlewares in DownstreamStatus.

  • Path shape: Look for RequestPath values containing a segment that starts with .. or . immediately followed by ; and a parameter, such as /..;x/. Since fixed versions also resolve empty segments with parameters (for example /foo/;bar/baz), treat a /; segment as suspicious as well.
  • Router context: The strongest signal is such a request handled by a router with no authentication middleware, where the traversed remainder points at a prefix you protect (for example /public/..;x/admin).
  • Outcome: A 2xx OriginStatus or DownstreamStatus on one of these requests suggests the backend served the protected resource, which points to a likely successful bypass rather than a probe.

The default log format is common. Setting accesslog.format to json makes these fields much easier to parse in a SIEM. Field output is governed by accesslog.fields.defaultMode and accesslog.fields.names, so confirm RequestPath, RouterName and the status fields are not being dropped. Legitimate traffic rarely contains ..; segments. Some Java applications use parameters like ;jsessionid= on normal segments, but those do not start with . or .., so keying on the dot prefix keeps false positives low.

2. Backend-side correlation

Compare the path Traefik logged and routed on with the path the backend reports serving. If a backend log or audit trail shows access to a protected resource and the matching Traefik entry shows a public router with a ..; style path, the authentication middleware was skipped. Given the vendor's CWE-436 framing, this two-sided comparison is the most reliable way to confirm a hit.

3. Behavioral check for patched builds

On v2.11.62, v3.7.18, v3.8.0-rc.2 and later, the Traefik documentation shows the sanitizer resolving these forms before routing:

  • /foo/.;bar/baz becomes /foo/baz
  • /foo/..;bar/baz becomes /baz
  • /foo/;bar/baz becomes /foo/baz

Send a harmless request of this shape to a test route and observe which router handles it. If it lands on the router for the resolved path, the instance behaves like a patched build. If it is routed on the raw prefix, it is still vulnerable. Ethiack lists a validated, deterministic, unauthenticated check for this issue that fired on a vulnerable build and stayed silent on a patched one, though its payload and evidence are not public.

4. Exposure and version inventory

Affected versions are Traefik before 2.11.62, 3.0.0 through 3.7.17, and 3.8.0-rc.1, and any instance on the end-of-life 3.0 through 3.6 lines counts as exposed. For Docker Compose deployments, NetBird's upgrade guide records the running Traefik version with commands including:

docker compose images docker compose exec traefik traefik version

A vulnerable version is only exploitable when sanitizePath is enabled, a backend strips path parameters, and that backend is shared by an unauthenticated router and a protected router, so review router configuration for that pattern to rank instances. Software composition analysis tools can flag github.com/traefik/traefik/v2 (v2.11.61 and earlier) and github.com/traefik/traefik/v3 (v3.0.0 through v3.7.17, and v3.8.0-rc.1) through the GHSA advisory.

Gaps in public tooling

We found no CVE-specific Sigma, YARA, Snort/Suricata or Nuclei rule, and no post-compromise IoCs. Detection currently rests on access log analysis of the path pattern, cross-checking Traefik and backend logs, and version and configuration inventory.

Affected systems and versions

  • Traefik 2: 2.11.61 and earlier are affected, and 2.11.62 has the fix.
  • Traefik 3 stable: 3.0.0 through 3.7.17 are affected, and 3.7.18 has the fix.
  • Traefik 3.8 prerelease: 3.8.0-rc.1 is affected, and 3.8.0-rc.2 has the fix.
  • Traefik 3.0 through 3.6: affected, end of life, and will not receive a patch.

Vulnerable configuration: an entry point with sanitizePath enabled (the default) where a backend that strips path parameters, such as a Servlet container or Spring application, is shared by an unauthenticated router and a router protected by authentication or authorization middleware. A vulnerable version number alone is not a complete exposure assessment. The routing and backend arrangement determines whether protected resources are reachable.

Vendor security history

Traefik Labs publishes a security policy stating that reports stay private until a fix is available, findings are reproduced before acceptance, and fixes ship before or with advisory publication. Advisories include affected ranges, CVSS v4 vectors, available mitigation and reporter credit. These are process commitments rather than independent proof of effectiveness.

The vendor's own security decisions page lists several earlier path-processing issues:

  • CVE-2026-48020: StripPrefix route-level authentication bypass.
  • CVE-2026-40912: StripPrefixRegex path and raw path desynchronization.
  • CVE-2026-33186: dot-segment bypass in prefix-stripping middleware.

Together they show that path interpretation is a recurring security boundary in Traefik's advisory history, though they do not establish a shared root cause or identical exploit conditions. The same page treats normalization differences that reach a backend under stock entry point defaults as vulnerabilities, while declining some reports that depend only on backend reinterpretation of otherwise permitted characters. In this case the vendor explicitly accepted and fixed parameterized dot segments left unresolved by its own sanitizer, so that broader scope policy does not diminish this advisory.

References

Detect & fix
what others miss

Works with
  • GitHub
  • GitLab
  • Bitbucket
  • Azure DevOps Services
  • Gerrit
  • CVS
  • Jira
  • Linear
  • Slack
  • Security Compass
Explore integrations
Security magnifying glass visualization