CVE-2026-118266
Published:October 28, 2026
Updated:October 29, 2026
Echo is a Go web framework. Prior to 4.16.0 and 5.4.0, Echo's MethodOverride middleware accepts a safe HTTP method as the override target for a POST request. When MethodOverride is registered before CSRF in the post-routing middleware chain, route selection retains the original state-changing POST handler but the override changes the method before CSRF evaluates it, causing both token validation and Sec-Fetch-Site checks to be skipped. A cross-site exploit requires an authenticated victim and an override value that a browser-submitted request can control, such as the form getter used by the advisory reproducer; the default X-HTTP-Method-Override header getter is not settable by a cross-site form. This issue is fixed in 4.16.0 and 5.4.0.
Affected Packages
https://github.com/labstack/echo.git (GITHUB):
Affected version(s) >=v2.0.0 <v4.16.0 || >=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
NONE
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE
Weakness Type (CWE)
Cross-Site Request Forgery