{"id":"ghsa-ghsa-2ffq-g2xg-c22p","seq":2056966,"kind":"advisory","title":"Echo: HTTPS Redirect and HSTS Bypass via Unconditional Trust of Forwarded Scheme Headers","url":"https://github.com/advisories/GHSA-2ffq-g2xg-c22p","permalink":"https://vulnpulse.app/items/ghsa-ghsa-2ffq-g2xg-c22p","summary":"影響: go:github.com/labstack/echo/v5 < 5.4.0 → 5.4.0, go:github.com/labstack/echo/v4 < 4.16.0 → 4.16.0\nContext.Scheme() unconditionally trusts four client-controlled HTTP headers to determine the request scheme, with no mechanism to configure trusted sources. This allows a remote unauthenticated attacker to bypass HTTPS redirect enforcement and suppress HSTS headers. The trusted headers (checked in this order of precedence): 1. X-Forwarded-Proto 2. X-Forwarded-Protocol 3. X-Forwarded-Ssl 4. X-Url-Scheme Threat model Scenario A — Directly exposed application (vulnerable by default): The Echo appl…","severity":"medium","techs":["go","github"],"cves":["CVE-2026-118657"],"tags":["GHSA-2ffq-g2xg-c22p","github.com/labstack/echo/v5","github.com/labstack/echo/v4"],"source":{"id":"ghsa","name":"GitHub Advisory Database"},"published_at":"2026-10-28T21:04:52.000Z","fetched_at":"2026-10-29T00:48:52.653Z"}