CVE-2020-15129

CVE-2020-15129 is a medium-severity open redirect vulnerability in github.com/traefik/traefik (go), affecting versions >= 1.5.0-rc5, < 1.7.26. It is fixed in 1.7.26, 2.3.0-rc6, 2.2.8, 2.3.0-rc3.

Summary

There exists a potential open redirect vulnerability in Traefik's handling of the X-Forwarded-Prefix header. Active Exploitation of this issue is unlikely as it would require active header injection, however the Traefik team addressed this issue nonetheless to prevent abuse in e.g. cache poisoning scenarios.

Details

The Traefik API dashboard component doesn't validate that the value of the header X-Forwarded-Prefix is a site relative path and will redirect to any header provided URI.

e.g.

$ curl --header 'Host:traefik.localhost' --header 'X-Forwarded-Prefix:https://example.org' 'http://localhost:8081'
<a href="https://example.org/dashboard/">Found</a>.`

Workarounds

By using the headers middleware, the request header X-Forwarded-Prefix value can be overridden by the value . (dot)

For more information

If you have any questions or comments about this advisory, open an issue in Traefik.

Credit

This issue was found by the GitHub Application Security Team and reported on behalf of the GHAS by the GitHub Security Lab Team.

Impact

A successful exploitation of an open redirect can be used to entice victims to disclose sensitive information.

Untrusted input controls a URL used for redirection, which can forward users to attacker-controlled sites. Typical impact: phishing and credential harvesting via a trusted domain.

CVE-2020-15129 has a CVSS score of 6.1 (Medium). The vector is network-reachable, no privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (1.7.26, 2.3.0-rc6, 2.2.8, 2.3.0-rc3); upgrading removes the vulnerable code path.

Affected versions

github.com/traefik/traefik (>= 1.5.0-rc5, < 1.7.26) github.com/traefik/traefik/v2 (< 2.2.8) github.com/containous/traefik (>= 1.5.0-rc5, < 1.7.26) github.com/containous/traefik/v2 (< 2.2.8) github.com/traefik/traefik/v2 (>= 2.3.0-rc1, < 2.3.0-rc3) github.com/containous/traefik/v2 (>= 2.3.0-rc1, < 2.3.0-rc3) github.com/traefik/traefik/api (>= 1.5.0-rc5, < 1.7.26) github.com/traefik/traefik/v2/pkg/api (< 2.2.8) github.com/traefik/traefik/v2/pkg/api (>= 2.3.0-rc1, < 2.3.0-rc3) github.com/containous/traefik/api (>= 1.5.0-rc5, < 1.7.26) github.com/containous/traefik/v2/pkg/api (< 2.2.8) github.com/containous/traefik/v2/pkg/api (>= 2.3.0-rc1, < 2.3.0-rc3)

Security releases

github.com/traefik/traefik → 1.7.26 (go) github.com/traefik/traefik/v2 → 2.3.0-rc6 (go) github.com/containous/traefik → 1.7.26 (go) github.com/containous/traefik/v2 → 2.2.8 (go) github.com/traefik/traefik/v2 → 2.3.0-rc6 (go) github.com/containous/traefik/v2 → 2.3.0-rc3 (go) github.com/traefik/traefik/api → 1.7.26 (go) github.com/traefik/traefik/v2/pkg/api → 2.3.0-rc6 (go) github.com/traefik/traefik/v2/pkg/api → 2.3.0-rc6 (go) github.com/containous/traefik/api → 1.7.26 (go) github.com/containous/traefik/v2/pkg/api → 2.2.8 (go) github.com/containous/traefik/v2/pkg/api → 2.3.0-rc3 (go)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

See it in your environment

Remediation advice

Upgrade the following packages to resolve this vulnerability:

github.com/traefik/traefik to 1.7.26 or later; github.com/traefik/traefik/v2 to 2.3.0-rc6 or later; github.com/containous/traefik to 1.7.26 or later; github.com/containous/traefik/v2 to 2.2.8 or later; github.com/traefik/traefik/v2 to 2.3.0-rc6 or later; github.com/containous/traefik/v2 to 2.3.0-rc3 or later; github.com/traefik/traefik/api to 1.7.26 or later; github.com/traefik/traefik/v2/pkg/api to 2.3.0-rc6 or later; github.com/traefik/traefik/v2/pkg/api to 2.3.0-rc6 or later; github.com/containous/traefik/api to 1.7.26 or later; github.com/containous/traefik/v2/pkg/api to 2.2.8 or later; github.com/containous/traefik/v2/pkg/api to 2.3.0-rc3 or later

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently Asked Questions

  1. What is CVE-2020-15129? CVE-2020-15129 is a medium-severity open redirect vulnerability in github.com/traefik/traefik (go), affecting versions >= 1.5.0-rc5, < 1.7.26. It is fixed in 1.7.26, 2.3.0-rc6, 2.2.8, 2.3.0-rc3. Untrusted input controls a URL used for redirection, which can forward users to attacker-controlled sites.
  2. How severe is CVE-2020-15129? CVE-2020-15129 has a CVSS score of 6.1 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which packages are affected by CVE-2020-15129?
    • github.com/traefik/traefik (go) (versions >= 1.5.0-rc5, < 1.7.26)
    • github.com/traefik/traefik/v2 (go) (versions < 2.2.8)
    • github.com/containous/traefik (go) (versions >= 1.5.0-rc5, < 1.7.26)
    • github.com/containous/traefik/v2 (go) (versions < 2.2.8)
    • github.com/traefik/traefik/api (go) (versions >= 1.5.0-rc5, < 1.7.26)
    • github.com/traefik/traefik/v2/pkg/api (go) (versions < 2.2.8)
    • github.com/containous/traefik/api (go) (versions >= 1.5.0-rc5, < 1.7.26)
    • github.com/containous/traefik/v2/pkg/api (go) (versions < 2.2.8)
  4. Is there a fix for CVE-2020-15129? Yes. CVE-2020-15129 is fixed in 1.7.26, 2.3.0-rc6, 2.2.8, 2.3.0-rc3. Upgrade to this version or later.
  5. Is CVE-2020-15129 exploitable, and should I be worried? Whether CVE-2020-15129 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2020-15129 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2020-15129?
    • Upgrade github.com/traefik/traefik to 1.7.26 or later
    • Upgrade github.com/traefik/traefik/v2 to 2.3.0-rc6 or later
    • Upgrade github.com/containous/traefik to 1.7.26 or later
    • Upgrade github.com/containous/traefik/v2 to 2.2.8 or later
    • Upgrade github.com/traefik/traefik/v2 to 2.3.0-rc6 or later
    • Upgrade github.com/containous/traefik/v2 to 2.3.0-rc3 or later
    • Upgrade github.com/traefik/traefik/api to 1.7.26 or later
    • Upgrade github.com/traefik/traefik/v2/pkg/api to 2.3.0-rc6 or later
    • Upgrade github.com/traefik/traefik/v2/pkg/api to 2.3.0-rc6 or later
    • Upgrade github.com/containous/traefik/api to 1.7.26 or later
    • Upgrade github.com/containous/traefik/v2/pkg/api to 2.2.8 or later
    • Upgrade github.com/containous/traefik/v2/pkg/api to 2.3.0-rc3 or later

Other vulnerabilities in github.com/traefik/traefik

CVE-2026-54761CVE-2026-53622CVE-2026-44774CVE-2026-41263CVE-2026-41174

Stop the waste.
Protect your environment with Kodem.