CVE-2026-118658
Published:October 28, 2026
Updated:October 29, 2026
Echo is a Go web framework. Prior to 4.15.2 and 5.1.1, Context.Scheme returns values from X-Forwarded-Proto, X-Forwarded-Protocol, or X-Url-Scheme without validating that they are supported web schemes. WWWRedirect and NonWWWRedirect use that value to construct a Location header, so an attacker controlling a forwarded scheme header can cause a redirect to use an arbitrary URI scheme. Exploitation requires an affected redirect middleware and user interaction with the response; the HTTPS-specific redirect variants hardcode HTTPS and are unaffected. This issue is fixed in 4.15.2 and 5.1.1.
Affected Packages
https://github.com/labstack/echo.git (GITHUB):
Affected version(s) >=v4.0.0 <v4.15.2Fix Suggestion:
Update to version v4.15.2https://github.com/labstack/echo.git (GITHUB):
Affected version(s) >=v5.0.0 <v5.1.1Fix Suggestion:
Update to version v5.1.1github.com/labstack/echo/v4 (GO):
Affected version(s) >=v4.0.0 <v4.15.2Fix Suggestion:
Update to version v4.15.2github.com/labstack/echo/v5 (GO):
Affected version(s) >=v5.0.0 <v5.1.1Fix Suggestion:
Update to version v5.1.1Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
2.3
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
LOW
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
4.7
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
URL Redirection to Untrusted Site