Traefik Kubernetes Ingress-NGINX Provider Auth Bypass via from-to-www-redirect (CVE-2026-88877)
Published: 2026-11-25 • Researcher: pwnVader (Jesus P Romero, PoC); Traefik project (GHSA-cjr6-pf59-jq29) and VulnCheck (advisory)
- Severity
- Critical
- CVE
- CVE-2026-88877 / GHSA-cjr6-pf59-jq29
- Category
- web
- Affected product
- Traefik HTTP reverse proxy / load balancer — Kubernetes ingress-nginx provider (providers.kubernetesingressnginx)
- Affected versions
- Traefik >= 3.7.0 and <= 3.7.11 (NVD range >= 3.7.0, < 3.7.12). Traefik v2 and v3 releases before 3.7.0 are not affected. Fixed in 3.7.12
- Disclosed
- 2026-11-25
- Patch status
- Patched
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-88877
- https://github.com/traefik/traefik/security/advisories/GHSA-cjr6-pf59-jq29
- https://www.vulncheck.com/advisories/traefik-3.7.0-authentication-bypass-via-from-to-www-redirect
- https://github.com/pwnVader/CVE-2026-88877-PoC-pwnVader
- https://github.com/advisories/GHSA-9rch-gvf7-hrfc
- https://access.redhat.com/security/cve/cve-2026-88877
- https://doc.traefik.io/traefik/contributing/security-decisions/
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-25 |
| Last Updated | 2026-09-22 |
| Author / Researcher | pwnVader (Jesus P Romero, PoC); Traefik project (GHSA-cjr6-pf59-jq29) and VulnCheck (advisory) |
| CVE / Advisory | CVE-2026-88877 / GHSA-cjr6-pf59-jq29 |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.8 (CVSS v3.1, NVD/worklist); vendor advisory also rates 9.3 (CVSS 4.0); vector not given in the worklist — see references |
| Status | PoC |
| Tags | auth-bypass, Traefik, Kubernetes, ingress-nginx, ingress-controller, middleware, Host-header, CWE-639, unauthenticated, reverse-proxy, from-to-www-redirect |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | Traefik HTTP reverse proxy / load balancer — Kubernetes ingress-nginx provider (providers.kubernetesingressnginx) |
| Versions Affected | Traefik >= 3.7.0 and <= 3.7.11 (NVD range >= 3.7.0, < 3.7.12). Traefik v2 and v3 releases before 3.7.0 are not affected. Fixed in 3.7.12 |
| Language / Platform | Go (Traefik); Bash + curl (PoC); Kubernetes (kind in the upstream lab) |
| Authentication Required | No — the attacker needs no credentials; the bypass discards the BasicAuth / allowlist the Ingress configured |
| Network Access Required | Yes — HTTP(S) access to the Traefik ingress entrypoint |
Summary
Traefik’s Kubernetes ingress-nginx provider mishandles Ingresses that carry both an authentication annotation and the from-to-www-redirect annotation. For such an Ingress it creates an additional sibling router that matches on the host alone, carries only the generated redirect middleware, and still forwards to the parent router’s protected backend. Because that redirect middleware is not a terminal handler and its pattern accepts only a numeric port, a request whose Host header carries a non-numeric or empty port selects the sibling router, misses the redirect, and reaches the protected backend with none of the Ingress annotation-derived middlewares applied. This silently discards BasicAuth, source-IP allowlisting and every other annotation-derived middleware on versions 3.7.0 through 3.7.11; the issue is fixed in 3.7.12.
Vulnerability Details
Root Cause
When the ingress-nginx provider translates an Ingress that combines an authentication (or allowlist) annotation with nginx.ingress.kubernetes.io/from-to-www-redirect: "true", it emits a second “sibling” router in addition to the parent router. The sibling router matches only the host (Host("www.example.com")) and carries only the generated RedirectRegex middleware, but its Service field is copied from the parent router, so it still points at the protected backend.
Two properties combine into a bypass:
RedirectRegexis not a terminal handler. If the regex does not match the request, control falls through to the next handler and the request is ultimately proxied to the backend.- The generated regex (
(https?)://[^/:]+(:[0-9]+)?/(.*)) accepts only a numeric port, while Traefik’sHost()matcher canonicalizes the request authority throughnet.SplitHostPort, which tolerates a non-numeric or empty port.
A request whose Host header is www.example.com:x therefore matches the sibling router but not the redirect regex, so it is proxied to the protected backend with none of the annotation-derived middlewares attached.
Attack Vector
A single unauthenticated HTTP request to the Traefik entrypoint with a crafted Host header, for example Host: www.example.local:x (a non-numeric port). No credentials, cookies or prior requests are required; the upstream PoC issues three GETs (baseline, www redirect, bypass) purely for verification. Preconditions: Traefik 3.7.0–3.7.11 running with the ingress-nginx provider enabled, and an Ingress that combines an auth/allowlist annotation with from-to-www-redirect for a host without a www. counterpart.
Impact
Authentication bypass and source-IP allowlist bypass: the request reaches the protected backend with the BasicAuth middleware and every other annotation-derived middleware skipped. What the attacker can then do depends on the backend (read data, invoke unauthenticated backend endpoints, or abuse the backend’s own trust in the ingress). There is no code execution in Traefik itself; the severity (9.8 / 9.3) reflects a complete loss of the access control the Ingress declares.
Environment / Lab Setup
OS: Linux x86_64 host with Docker (kind cluster)
Target: Traefik v3.7.10 (any 3.7.0–3.7.11) started with
--providers.kubernetesingressnginx=true, a traefik/whoami
backend, and an Ingress carrying
nginx.ingress.kubernetes.io/auth-type: basic plus
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
Attacker: Any host that can reach the Traefik entrypoint; bash + curl
Tools: docker, kind, kubectl, curl, bashSetup Steps
The upstream README documents a self-contained kind lab and a check mode. The published repository snapshot contains only LICENSE, README.md and poc.sh; the referenced lab/ directory (up.sh, down.sh, manifests.yaml) is not published, so the lab must be rebuilt manually. Upstream commands as documented:
| |
Manual equivalent (what the missing lab performs):
| |
Proof of Concept
Step-by-Step Reproduction
- Baseline the protected host — request the Ingress host directly; the BasicAuth middleware answers 401.Shell script
1curl -s -o /dev/null -w '%{http_code}\n' -H 'Host: example.local' http://127.0.0.1:18080/ - Confirm the redirect router — request the www host; the generated RedirectRegex answers 308 to the canonical host.Shell script
1curl -s -o /dev/null -w '%{http_code}\n' -H 'Host: www.example.local' http://127.0.0.1:18080/ - Send the bypass request — add a non-numeric port to the www Host header; the request selects the sibling router, misses the redirect regex, and is proxied to the backend.Shell script
1curl -s -i -H 'Host: www.example.local:x' http://127.0.0.1:18080/ - Verify — the whoami backend echoes the request, proving it was reached with no Authorization header and no auth middleware applied.
Alternatively, run the upstream script against a candidate deployment (read-only: three GET requests):
| |
Exploit Code
See
poc.shin this folder (modes:check,lab,lab-down). The bypass is a single crafted request; the script wraps it in a three-request oracle.
| |
Expected Output
| |
The 200 is what the whoami backend returns in the upstream lab; with another backend the bypass may surface as any non-401/403, non-redirect response.
Detection & Indicators of Compromise
- Requests whose Host header carries a non-numeric or empty port (for example
www.example.com:xorwww.example.com:) — the signature of the sibling-router bypass. - A request to the
www.variant of a protected host that returns a backend response instead of a 308/301 redirect. - Backend access logs showing requests to a host that the Ingress protects with BasicAuth or an IP allowlist, arriving without an Authorization header and without the expected redirect.
- Traefik configuration review: Ingresses that combine an auth/allowlist annotation with
nginx.ingress.kubernetes.io/from-to-www-redirecton Traefik 3.7.0–3.7.11. Treat every such Ingress as exposed until patched.
Example access-log line (Host field with a non-numeric port):
| |
SIEM / IDS rule (example):
| |
Remediation
| Action | Detail |
|---|---|
| Patch | Upgrade to Traefik v3.7.12 or later. The fix anchors the redirect regex and points the redirect router at an internal unavailable service so a slipped request can never reach a protected backend. |
| Workaround | Remove nginx.ingress.kubernetes.io/from-to-www-redirect from any Ingress that also carries authentication or source-IP allowlisting, and implement the www redirect with an explicit Traefik RedirectScheme/RedirectRegex CRD that keeps the access-control middlewares attached. |
| Config Hardening | Enforce authentication at the backend/upstream as defence in depth; keep ingress controllers inside their support window; alert on non-numeric Host ports. |
References
Notes
Auto-ingested from https://github.com/pwnVader/CVE-2026-88877-PoC-pwnVader on 2026-11-25.
Review verdict: real PoC, limited. poc.sh performs the actual bypass (crafted Host header) and reads the protected backend’s response, so it is exploit code rather than a version/audit scanner; the script also has a lab mode for a local kind cluster (harness not published). It is not the original discovery — the issue was disclosed through the Traefik advisory and fixed in v3.7.12, and the repo is an independent technical analysis.
Limitations: the README documents lab/up.sh, lab/down.sh and lab/manifests.yaml, but the published snapshot tracks only LICENSE, README.md and poc.sh; the lab harness is missing and must be rebuilt from the README (as above). The check mode is an oracle: it confirms the request reached the backend (status code and echoed headers), not data theft or downstream impact, and its verdict is backend-dependent. Reproduction needs a Kubernetes Ingress with the specific annotation combination and a host without a www. counterpart. No RCE is demonstrated. The upstream files are archived with the repo’s MIT license and author attribution (Copyright (c) 2026 Jesus P Romero); the license permits redistribution with attribution. Worklist metrics: CVSS 9.8, EPSS 0.00649, not listed in CISA KEV at ingest time. Cloud was considered as the category because the provider is Kubernetes-specific, but the vulnerability is an HTTP-layer routing/middleware bypass in a reverse proxy, so it is filed under web.
| |