Traefik: Errors middleware forwards Authorization and Cookie headers to separate error page service
traefik
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/traefik/traefik/v2 Go |
|
|
| github.com/traefik/traefik/v3 Go |
|
traefik
| Product | Affected | Fixed in |
|---|---|---|
| github.com/traefik/traefik/v2 Go |
|
|
| github.com/traefik/traefik/v3 Go |
|
3.6.153.7.0-rc.3| github.com/traefik/traefik Go |
| No fix yet |
Traefik is an HTTP reverse proxy and load balancer. Prior to 2.11.44, 3.6.15, and 3.7.0-rc.3, there is an information disclosure vulnerability in Traefik's errors (custom error pages) middleware. When the backend returns a response matching the configured status range, the middleware forwards the original request's complete header set, including Authorization, Cookie, and other authentication material, to the separate error page service rather than only the minimal context needed to render the error page. This behavior is undocumented: the documentation states only that Host is forwarded by default, so operators are not warned that sensitive credentials are shared across service boundaries. Deployments using the errors middleware with a distinct error page service may inadvertently expose end-user credentials to infrastructure that was not intended to receive them. This vulnerability is fixed in 2.11.44, 3.6.15, and 3.7.0-rc.3.
From the CVE record · GitHub_M
Traefik’s errors middleware forwards the original request’s full headers, including credentials, to a separate error page service when a backend response matches the configured status range. In deployments with a distinct error page service, a network request that triggers such a response may expose end-user credentials to infrastructure not intended to receive them.
Operators using Traefik’s errors middleware should check Go package github.com/traefik/traefik/v2 before 2.11.44, github.com/traefik/traefik/v3 before 3.6.15 or on affected 3.7.0 release candidates before rc.3, and github.com/traefik/traefik at any version.