Missing Authentication for Critical Function Affecting github.com/traefik/traefik/v2/pkg/middlewares/forwardedheaders package, versions <2.11.43


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.48% (38th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Missing Authentication for Critical Function vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMTRAEFIKTRAEFIKV2PKGMIDDLEWARESFORWARDEDHEADERS-16301566
  • published27 Apr 2026
  • disclosed24 Apr 2026
  • creditfancymalware

Introduced: 24 Apr 2026

CVE-2026-39858  (opens in a new tab)
CWE-306  (opens in a new tab)

How to fix?

Upgrade github.com/traefik/traefik/v2/pkg/middlewares/forwardedheaders to version 2.11.43 or higher.

Overview

Affected versions of this package are vulnerable to Missing Authentication for Critical Function in the ServeHTTP() function, which does not sufficiently sanitize X- alias headers. An attacker can gain unauthenticated access to protected endpoints by injecting spoofed trust context with headers using underscores, such as X_Forwarded_Proto in place of the canonical X-Forwarded-Proto, which are not removed before forwarding.

CVSS Base Scores

version 4.0
version 3.1