Advisory record · GHSA-2ffq-g2xg-c22p

Echo: HTTPS Redirect and HSTS Bypass via Unconditional Trust of Forwarded Scheme Headers

CVSS 5.9 MediumEPSS 0.0013 · 2nd percentile

Published by the GitHub Advisory Database at 28 Oct 2026, 21:04 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
github.com/labstack/echo/v5Go<5.4.05.4.0
github.com/labstack/echo/v4Go<4.16.04.16.0
Identifiers
GHSA-2ffq-g2xg-c22p · CVE-2026-118657 · GO-2026-6879
Weakness (CWE)
CWE-346
Published
28 Oct 2026
Updated
5 Nov 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Echo v5 before 5.4.0 and Echo v4 before 4.16.0 trust client-supplied forwarded scheme headers (such as X-Forwarded-Proto) without any configuration, so Context.Scheme() can return an attacker-chosen value. A remote attacker who can reach the application directly, or bypass a proxy, can skip HTTPS redirect enforcement, suppress HSTS headers, and inject arbitrary schemes into URLs built by the WWW redirect middleware. Upgrade to Echo v5.4.0 or v4.16.0.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.9 Medium 3.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0013, the 2nd percentile, on 6 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 28 Oct 2026, 20:14 UTC Confirmed by the CVE List
  2. 28 Oct 2026, 21:16 UTC Confirmed by NVD
  3. 31 Oct 2026, 14:11 UTC First seen by agentprime
  4. 31 Oct 2026, 14:11 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.