CVE-2026-40912
Traefik has an StripPrefixRegex Middleware Authorization Bypass via Path/RawPath Desync
Summary
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/traefik/traefik/v2@v2.11.43
go get github.com/traefik/traefik/v3@v3.6.14
go get github.com/traefik/traefik/v3@v3.7.0-rc.2
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (4)
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| github.com/traefik/traefik/v2 | go | All versions | 2.11.43 |
| github.com/traefik/traefik/v3 | go | All versions | 3.6.14 |
| github.com/traefik/traefik/v3 | go | All versions | 3.7.0-rc.2 |
| github.com/traefik/traefik | go | All versions | Range-based data available |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-22Path TraversalMITRE
- CWE-706
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.2 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
References
- https://github.com/traefik/traefik/security/advisories/GHSA-6jwx-7vp4-9847WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-40912ADVISORY
- https://access.redhat.com/errata/RHSA-2026:21772WEB
- https://access.redhat.com/security/cve/CVE-2026-40912WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2464229WEB
- https://github.com/traefik/traefikPACKAGE
- https://github.com/traefik/traefik/releases/tag/v2.11.43WEB
- https://github.com/traefik/traefik/releases/tag/v3.6.14WEB
- https://github.com/traefik/traefik/releases/tag/v3.7.0-rc.2WEB
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40912.jsonWEB
Frequently Asked Questions
- What is CVE-2026-40912?
- Traefik has an StripPrefixRegex Middleware Authorization Bypass via Path/RawPath Desync This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.2/10).
- How do I check if my project is affected by CVE-2026-40912?
- CVE-2026-40912 affects github.com/traefik/traefik/v2, github.com/traefik/traefik/v3 and github.com/traefik/traefik. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-40912 and 200,000+ other known vulnerabilities.
Severity & Exploitability
High exploitability or significant impact. Prioritize remediation within days.
Also Known As
Related CVEs
- CVE-2026-65600CRITICAL
Traefik: Authentication Bypass via Path Traversal in ReplacePathRegex Middleware
- CVE-2026-71324HIGH
Traefik: Cross-user response poisoning via proxied CONNECT on Traefik's shared backend keep-alive pool
- CVE-2026-39858HIGH
Traefik: Pre-authentication decision bypass due to forwarded alias spoofing
- CVE-2026-35051HIGH
Traefik's ForwardAuth trustForwardHeader=false allows spoofed X-Forwarded-Prefix to bypass authentication
- CVE-2025-32431HIGH
Traefik has a possible vulnerability with its path matchers
- CVE-2026-53622HIGH
Traefik: HTTP/3 mTLS bypass via exact SNI TLSOptions lookup for wildcard and mixed-case hosts
- CVE-2026-32305HIGH
Traefik has a Potential mTLS Bypass via Fragmented TLS ClientHello Causing Pre-SNI Sniff Fallback to Default Non-mTLS TLS Config
- CVE-2026-44774MEDIUM
Traefik: Gateway API TraefikService backend accepts rest@internal, allowing unauthorized exposure of the REST provider despite providers.rest.insecure=false
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies