CVE-2026-118657
Published:October 28, 2026
Updated:October 29, 2026
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
https://github.com/labstack/echo.git (GITHUB):
Affected version(s) >=v4.0.0 <v4.16.0Fix Suggestion:
Update to version v4.16.0https://github.com/labstack/echo.git (GITHUB):
Affected version(s) >=v5.0.0 <v5.4.0Fix Suggestion:
Update to version v5.4.0github.com/labstack/echo/v5 (GO):
Affected version(s) >=v5.0.0 <v5.4.0Fix Suggestion:
Update to version v5.4.0github.com/labstack/echo/v4 (GO):
Affected version(s) >=v4.0.0 <v4.16.0Fix Suggestion:
Update to version v4.16.0Related Resources (6)
Do you need more information?
Contact UsCVSS v4
Base Score:
6
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.9
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Origin Validation Error