CVEfocus › CVE database › CVE-2026-118657

CVE-2026-118657Echo: HTTPS Redirect and HSTS Bypass via Unconditional Trust of Forwarded Scheme Headers

CVSS 5.9 MediumEPSS 0.2% (higher than 5% of CVEs)Published 2026-10-28Updated 2026-11-03Assigner: GitHub_M

Echo is a Go web framework. Prior to 4.16.0 and 5.4.0, Context.Scheme unconditionally trusts forwarded scheme headers from any client. A client that reaches Echo directly over plaintext HTTP can claim an HTTPS scheme and bypass HTTPSRedirect because the request is treated as already secure. Separately, behind a TLS-terminating proxy that passes an attacker-controlled header, a claimed HTTP scheme can suppress the Strict-Transport-Security header even though the browser receives the response over HTTPS. The practical risk is reduced when a trusted proxy overwrites the headers and direct backend access is prevented, but the framework previously had no trusted-source configuration for this decision. This issue is fixed in 4.16.0 and 5.4.0.

CWE-346

What to do

Fixed builds are available from Go: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
6Fix pending
5Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10golang-github-labstack-echoFix pendingUBUNTU-CVE-2026-118657
Ubuntu 26.04golang-github-labstack-echoUnder investigationUBUNTU-CVE-2026-118657
Ubuntu 24.04golang-github-labstack-echoUnder investigationUBUNTU-CVE-2026-118657
Ubuntu 22.04golang-github-labstack-echoUnder investigationUBUNTU-CVE-2026-118657
Ubuntu 22.04golang-github-labstack-echo.v2Under investigationUBUNTU-CVE-2026-118657
Ubuntu 22.04golang-github-labstack-echo.v3Under investigationUBUNTU-CVE-2026-118657
Ubuntu 20.04golang-github-labstack-echo.v2Fix pendingUBUNTU-CVE-2026-118657
Ubuntu 20.04golang-github-labstack-echo.v3Fix pendingUBUNTU-CVE-2026-118657
Debian 14golang-github-labstack-echoFix pendingDEBIAN-CVE-2026-118657
Debian 13golang-github-labstack-echoFix pendingDEBIAN-CVE-2026-118657
Debian 12golang-github-labstack-echoFix pendingDEBIAN-CVE-2026-118657
Go librarygithub.com/labstack/echo/v4Fixed4.16.0GO-2026-6879
Go librarygithub.com/labstack/echo/v5Fixed5.4.0GHSA-2ffq-g2xg-c22p

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.