Vulnerability · Published Oct 28, 2026 · Assigned by GitHub_M

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

Medium 5.9

In plain English

A medium-severity security flaw in echo from labstack. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 3% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)0.1%top 97.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12golang-github-labstack-echono fix listedDEBIAN-CVE-2026-118657
Debian:13golang-github-labstack-echono fix listedDEBIAN-CVE-2026-118657
Debian:14golang-github-labstack-echono fix listedDEBIAN-CVE-2026-118657
Gogithub.com/labstack/echo/v44.16.0GO-2026-6879
Gogithub.com/labstack/echo/v44.16.0GHSA-2ffq-g2xg-c22p
Gogithub.com/labstack/echo/v55.4.0GHSA-2ffq-g2xg-c22p
Gogithub.com/labstack/echo/v55.4.0GO-2026-6879
Ubuntu:22.04:LTSgolang-github-labstack-echono fix listedUBUNTU-CVE-2026-118657
Ubuntu:24.04:LTSgolang-github-labstack-echono fix listedUBUNTU-CVE-2026-118657
Ubuntu:26.04:LTSgolang-github-labstack-echono fix listedUBUNTU-CVE-2026-118657
Ubuntu:26.10golang-github-labstack-echono fix listedUBUNTU-CVE-2026-118657
Ubuntu:22.04:LTSgolang-github-labstack-echo.v2no fix listedUBUNTU-CVE-2026-118657
Ubuntu:22.04:LTSgolang-github-labstack-echo.v3no fix listedUBUNTU-CVE-2026-118657

Affected products (as reported)

VendorProductVersions
labstack echo >= 5.0.0, < 5.4.0< 4.16.0

Weakness: CWE-346 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N

References