Dev.to Security ๐Ÿ” Cybersecurity ๐Ÿ‘ 0 ๐Ÿ“– 7 min read

Traefik 3.7.20: your provider credentials leaked into logs and anonymous usage statistics

On 23 November, Traefik released 3.7.20 and 2.11.64. The next day, three security advisories explained why. The first one says something simple: the password of your Docker provider and the headers of your HTTP provider

Traefik 3.7.20: your provider credentials leaked into logs and anonymous usage statistics

On 23 November, Traefik released 3.7.20 and 2.11.64. The next day, three security advisories explained why. The first one says something simple: the password of your Docker provider and the headers of your HTTP provider went out in clear text. Into the DEBUG logs, into the support archive, and into the anonymous usage statistics sent to the vendor.

TL;DR: three advisories on 24 November, fixed in Traefik 3.7.20, 3.8.0 and 2.11.64. One, your provider credentials were not redacted (v3 only). Two, Brotli compression, on by default, lets an unauthenticated client exhaust the proxy's memory (v3 only). Three, a trailing dot in a host name bypasses a client certificate (v2 and v3). Each advisory depends on one precise setting on your side. And the flaw fixed on 10 November got its public number, CVE-2026-137481, on 26 November: your scanners are only noticing now.

State of the sources: read on 1 December 2026 from Traefik's GitHub advisories, release notes and documentation. Check the latest fixes before you deploy.

This article is for teams running Traefik 3 in Docker, Swarm or Kubernetes. If you are still on 2.11, only the third advisory concerns you.

Three advisories on 24 November, one fix the day before

Traefik is a reverse proxy. It reads its configuration from Docker, Kubernetes or a file, and it routes requests. The three advisories touch three different places: reading the config, compressing responses, and picking TLS options.

The 3.0 to 3.6 lines are affected by all three and will get nothing. The advisories repeat it every time: "the remedy is upgrading to a patched v3.7 or v3.8 release". This continues what I wrote on 10 November about the ForwardAuth flaw and my abandoned version.

In three weeks, the 3.7 line got three releases. Here is what each one brings.

The Traefik 3.7 releases of November 2026 and the CVE publication

Three releases in thirteen days. The CVE lands sixteen days after its fix. The top row follows the 3.7 line. The bottom row shows what the other lines get: nothing for 3.0 to 3.6, a single fix for 2.11.

Advisory 1: an unredacted credential leaves through three doors

Traefik reads its static configuration at startup. If the log level is DEBUG, it writes that configuration to the logs. It is supposed to redact sensitive fields first. Four options were not marked as sensitive. The password of the Docker and Swarm providers, the token of the Knative provider, and the headers of the HTTP provider.

The HTTP provider headers went further. Traefik also kept them in the support archive, the one served by /api/support-dump. And in the anonymous usage statistics, if you had turned them on. The fix is a few lines long: PR 14305 adds the loggable:"false" tag to those four options and removes export:"true" from the HTTP headers.

Are you affected? Three conditions, any one is enough:

  • Your Docker or Swarm provider talks to the Docker API over TCP with a password. Over the Unix socket there is no password, so nothing to leak.
  • Your HTTP provider sends an authentication header to the server that serves the config.
  • You use the Knative provider with a token.

Then, who can read? Your logs, if anyone has access to them. The support archive, if you sent one to a third party. The anonymous usage statistics, which leave once a day for Traefik Labs. The documentation says this upload is off by default, and that it strips "tokens, passwords, URLs, IP addresses". The HTTP headers slipped through.

If one condition holds, upgrade, then rotate the credential. A password already written to a log stays written.

Advisory 2: Brotli is on by default and holds megabytes per response

Brotli is one of the three formats of the compress middleware. The default value of encodings is gzip, br, zstd. Any client sending Accept-Encoding: br gets it.

The problem: the Brotli writer keeps several megabytes of state per response, until the response is fully written. An unauthenticated client can keep many responses open at once, for example over a single HTTP/2 connection. The process runs out of memory, and every route goes down with it.

The same flaw had been fixed for zstd in 3.7.18, on 10 November. Brotli waited thirteen more days. Traefik 2 is not affected: it cannot do Brotli.

You are affected if a compress middleware is attached to at least one public router, without restricting encodings. No compress middleware, nothing to do. Until you upgrade, limiting encodings to gzip closes both paths fixed since November.

Advisory 3: a trailing dot in a host name bypasses the client certificate

In DNS, example.com. and example.com are the same name. Traefik's Host and HostSNI rules know that. The conflict detection between TLS options did not.

The scenario: one router protects example.com with TLS options that require a client certificate. Another router, defined with example.com., serves the same host without that requirement. No conflict detected, no router put in error, even with core.strictTLSOptions enabled. The second router wins, and the client certificate is no longer asked for.

This flaw only concerns you if two things are true. You use client certificate authentication, sometimes called mTLS. And someone other than you can define routers on the same instance. For example a tenant of a shared Traefik, or a service that sets its own Docker labels. If you are the only one writing the config, the risk is a typo, not an attack.

CVE-2026-137481 reaches your alerts sixteen days after its fix

A CVE is a public number assigned to a flaw. Traefik publishes its advisories without a number, on GitHub. The number comes later, sometimes never.

On 10 November, 3.7.18 fixed advisory GHSA-cp28-5662-543f. The sanitizePath option, on by default, let a segment like /..;x/ through. A request such as /public/..;x/admin could reach a protected route, when the backend strips path parameters. On 26 November, that flaw received the number CVE-2026-137481.

A scanner that reads the CVE database only warns you on that day. If you are already on 3.7.18 or later, the alert is late, not new. If you are below, it just caught up with you. On 17 November I wrote why your scanner has a version to pin too. The project's advisory page remains the source of truth.

Check your exposure in four commands

Start with the version that runs, not the one written in your file:

# Docker
docker exec <traefik-container> traefik version
# Kubernetes
kubectl get pods -A -o jsonpath='{range .items[*]}{.spec.containers[*].image}{"\n"}{end}' | grep traefik

For advisory 1, look for the four options and the statistics upload. The startup log also says whether sendAnonymousUsage is on:

grep -rniE 'password|headers:|token:|sendAnonymousUsage' traefik.yml docker-compose*.yml
docker logs <traefik-container> 2>&1 | grep -i 'anonymous'

For advisory 2, ask the API which compress middlewares are loaded, and with which formats:

curl -s http://127.0.0.1:8080/api/http/middlewares \
  | jq -r '.[] | select(.type == "compress") | "\(.name) \(.compress.encodings // "default: gzip, br, zstd")"'

For advisory 3, list the TLS options that require a client certificate. Without clientAuth, this flaw does not concern you:

grep -rniE 'clientAuth|strictTLSOptions' traefik.yml dynamic/ docker-compose*.yml

At home, the 10 November reading still holds

My lab from 10 November has not changed shape. File and Docker providers, Docker through its socket, so no password. No middleware, so no compress. No client certificate authentication. And sendAnonymousUsage is false in my config files. On paper, the three advisories leave me alone.

The problem is the same as in November: my line no longer gets fixes. The target has moved twice since. It was 3.7.18 on 10 November, it has been 3.7.20 since the 23rd. A blog post cannot keep that pace. A weekly update can.

The checklist

An advisory tells you where to look. Your config tells you whether you are affected. The running version tells you whether it is fixed.

  • [ ] Read the running version with traefik version inside the container: aim for 3.7.20, 3.8.0 or 2.11.64
  • [ ] If you are on 3.0 to 3.6, change line: none of the three advisories will be fixed there
  • [ ] Docker or Swarm provider over TCP with a password, HTTP provider with headers, Knative provider: upgrade and rotate the credential
  • [ ] Review who received your DEBUG logs and support archives since those options went in
  • [ ] compress middleware on a public route: upgrade, or limit encodings to gzip meanwhile
  • [ ] TLS options with clientAuth on an instance where others write routers: upgrade first
  • [ ] Add Traefik's GitHub advisory page to your watch list: the CVE comes weeks later

What to remember

Three advisories, three settings to check: a provider password, a compression middleware, a TLS option. None of the three is serious for everyone. Each one is serious for someone.

And the lesson of the 26 November CVE applies to all of them: your scanner reads a database that runs sixteen days behind the project. Read the project.

Want a review of your Traefik config and your update routine? Look at my DevSecOps package, or let's talk.

Sources: Traefik advisories GHSA-42x2-976f-ph52, GHSA-3rh5-223h-cpwr, GHSA-9657-c2gv-wjpj and GHSA-cp28-5662-543f ยท CVE-2026-137481 (published 26 November 2026) ยท release notes v3.7.20, v3.7.19, v3.7.18, v2.11.64 ยท PR 14305 (provider field redaction) ยท Traefik documentation: data collection, compress middleware, TLS options.

๐Ÿ“ฐ Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ€” full credit and traffic to the original publisher.