/

CVE-2026-85595

Severity:

CRITICAL RISK

(9.8)

Authentication Bypass (CWE-287) in Traefik digestAuth

CVE-2026-85595

Analyzed

Vulnerability type

Category:

Authentication Bypass

CWE:

CWE-287

Impact:

Unauthorized Access

Severity:

CRITICAL RISK

(9.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A critical authentication bypass in Traefik's digestAuth middleware causes unknown usernames to receive an empty secret rather than being rejected. An attacker can use that behavior to generate a valid digest response with arbitrary credentials and access routes protected by the middleware.

Affected context

The vulnerability occurs in Traefik deployments that use the digestAuth middleware to protect HTTP routes. It becomes risky when an exposed route relies on digest authentication and the middleware processes a username that is not present in its configured credential store.

Exploit preconditions

  • Attack surface: An HTTP or HTTPS route protected by Traefik digestAuth
  • Required access: Network access to the protected route; no valid username or password is required
  • Trigger point: Digest authentication processing for an unknown username
  • Why exploitation is possible: The middleware substitutes an empty secret instead of rejecting the unknown identity, allowing a digest response to be computed from that predictable value

Why this happens

The underlying bug is an authentication decision error in the handling of unknown identities. Instead of failing closed when a username is absent from the credential store, the middleware continues verification with an empty secret, allowing attacker-controlled credentials to satisfy the digest calculation. This behavior maps to CWE-287: Improper Authentication, because the system accepts an authentication response without proving possession of a valid configured credential.

Potential impact

  • Attackers may access routes intended only for authenticated users
  • Protected application functionality could be exposed without authorization
  • Attackers could retrieve sensitive data available through protected endpoints
  • Unauthorized users may perform administrative or state-changing actions
  • Compromised routes could enable further application or infrastructure attacks

General mitigation guidance

Mitigation generally focuses on ensuring authentication fails closed for unknown identities and reducing reliance on a single perimeter control.

Common defensive patterns include:

  • Rejecting unknown usernames before calculating or validating a digest response
  • Treating missing, empty, or malformed credential records as authentication failures
  • Applying defense-in-depth authorization checks within protected applications
  • Limiting access to sensitive routes through network policy and least privilege
  • Reviewing authentication middleware configuration and credential-store integrity
  • Using secure-by-default authentication components that do not substitute fallback secrets

How teams detect issues like this

Organizations can look for this issue through:

  • Static analysis and code review checks for empty-secret or default-secret authentication fallbacks
  • Tests that verify unknown, empty, and malformed usernames are rejected
  • Integration tests covering digest authentication failure paths
  • Monitoring for successful authentication events associated with unknown usernames
  • Policy enforcement requiring explicit failure handling for missing credential records
  • Automated security review tools that flag authentication flows which continue after identity lookup failure

Sources

SourceLink
github.comgithub.com/traefik/traefik/security/advisories/GHSA-5w68-77r2-r64c
vulncheck.comvulncheck.com/advisories/traefik-before-2.11.55-authentication-bypass-via-digestauth

Frequently asked

questions

Yes. An attacker generally needs network access to a route protected by the vulnerable digestAuth middleware, but does not need a valid account.

No valid credentials are required. The vulnerable behavior handles an unknown username with an empty secret, which can enable authentication bypass.

Ensure unknown usernames are rejected before digest verification and that missing or empty secrets are never treated as valid authentication material.

Test authentication failure paths explicitly, enforce fail-closed identity validation, monitor unusual successful logins, and apply authorization controls independently of edge authentication.

Find out what's already
exploitable in your codebase.