CVE-2026-32595: Traefik Affected by BasicAuth Middleware Timing Attack Allows Username Enumeration
There is a potential vulnerability in Traefik’s BasicAuth middleware that allows username enumeration via a timing attack.
When a submitted username exists, the middleware performs a bcrypt password comparison taking ~166ms. When the username does not exist, the response returns immediately in ~0.6ms. This ~298x timing difference is observable over the network and allows an unauthenticated attacker to reliably distinguish valid from invalid usernames.
A timing attack vulnerability exists in Traefik’s BasicAuth middleware that allows unauthenticated attackers to enumerate valid usernames. When a username exists, bcrypt password verification takes ~166ms; when it doesn’t exist, the response returns immediately in ~0.6ms. This ~298x timing difference enables reliable username enumeration.
References
- github.com/advisories/GHSA-g3hg-j4jv-cwfr
- github.com/traefik/traefik
- github.com/traefik/traefik/releases/tag/v2.11.41
- github.com/traefik/traefik/releases/tag/v3.6.11
- github.com/traefik/traefik/releases/tag/v3.7.0-ea.2
- github.com/traefik/traefik/security/advisories/GHSA-g3hg-j4jv-cwfr
- nvd.nist.gov/vuln/detail/CVE-2026-32595
Code Behaviors & Features
Detect and mitigate CVE-2026-32595 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →