Use of Incorrectly-Resolved Name or Reference Affecting github.com/traefik/traefik/pkg/middlewares/stripprefix package, versions <2.11.43>=3.0.0-beta1 <3.6.14>=3.7.0-ea.1 <3.7.0-rc.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.77% (51st 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 IDSNYK-GOLANG-GITHUBCOMTRAEFIKTRAEFIKPKGMIDDLEWARESSTRIPPREFIX-16301627
  • published27 Apr 2026
  • disclosed24 Apr 2026
  • creditNicholas Gould

Introduced: 24 Apr 2026

CVE-2026-40912  (opens in a new tab)
CWE-706  (opens in a new tab)

How to fix?

Upgrade github.com/traefik/traefik/pkg/middlewares/stripprefix to version 2.11.43, 3.6.14, 3.7.0-rc.2 or higher.

Overview

Affected versions of this package are vulnerable to Use of Incorrectly-Resolved Name or Reference in StripPrefixRegex, when used together with ForwardAuth, BasicAuth, or DigestAuth. An attacker can gain unauthorized access to protected backend resources by sending requests with percent-encoded dot segments in the URL path, which bypass authentication checks due to a mismatch between decoded and raw path handling.

CVSS Base Scores

version 4.0
version 3.1