{"cve":"CVE-2026-118266","nvd":{"published":"2026-10-28T20:17:21.577","modified":"2026-10-28T20:17:21.577","status":"Received","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","score":5.3},"cwes":["CWE-352"],"references":["https://github.com/labstack/echo/commit/b838391e2eade87ae7e5a09d7bb5087bec271ec1","https://github.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5af","https://github.com/labstack/echo/releases/tag/v4.16.0","https://github.com/labstack/echo/releases/tag/v5.4.0","https://github.com/labstack/echo/security/advisories/GHSA-r7w9-592q-9vg4"],"products":[],"source":"nvd","synced_at":"2026-10-28T20:41:45.883959281+00:00"},"epss":null,"kev":null,"osv":[{"id":"GHSA-r7w9-592q-9vg4","url":"https://osv.dev/vulnerability/GHSA-r7w9-592q-9vg4","summary":"Echo has CSRF Protection Bypass via MethodOverride Rewriting POST to Safe Method","modified":"2026-10-28T20:00:03.851200504Z","packages":[{"ecosystem":"Go","name":"github.com/labstack/echo/v5","purl":"pkg:golang/github.com/labstack/echo/v5","ranges":[">=5.0.0 <5.4.0"],"fixed":["5.4.0"]},{"ecosystem":"Go","name":"github.com/labstack/echo/v4","purl":"pkg:golang/github.com/labstack/echo/v4","ranges":["<4.16.0"],"fixed":["4.16.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}