CVE-2026-118266 json
Echo: CSRF Protection Bypass via MethodOverride Rewriting POST to Safe Method
published 2026-10-28 11 d ago modified 2026-11-05 3 d ago also GHSA-r7w9-592q-9vg4 , GO-2026-6877 , EUVD-2026-112403
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 5%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/labstack/echo/v5 5.4.0
- go github.com/labstack/echo/v4 4.16.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-118266 updated cvss 5.3
github.com/labstack/echo: Echo: CSRF protection bypass via MethodOverride safe method rewriting
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 5 d ago
Exploit prediction
0.16% chance of exploitation in the next 30 days, higher than 5% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/labstack/echo/security/advisories/GHSA-r7w9-592q-9vg4 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/labstack/echo/v5 | >=5.0.0, <5.4.0 |
5.4.0 |
| go | github.com/labstack/echo/v4 | <4.16.0 |
4.16.0 |
Affected products
- labstack echo
Classification
- Weakness
-
- CWE-352 Cross-Site Request Forgery
References
-
github.com
/labstack/echo/commit/b838391e2eade87ae7e5a09d7bb5087bec271ec1
web, patch
-
github.com
/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5af
web, patch
-
github.com
/labstack/echo/security/advisories/GHSA-r7w9-592q-9vg4
exploit, web, advisory
-
github.com
/labstack/echo/releases/tag/v4.16.0
web
-
github.com
/labstack/echo/releases/tag/v5.4.0
web
-
github.com
/labstack/echo
package
Sources
- CVE List CVE-2026-118266
- GitHub Advisory GHSA-r7w9-592q-9vg4
- NVD CVE-2026-118266
- OSV GO-2026-6877
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.