CVE-2026-118266: falha de média gravidade em labstack echo
Echo: CSRF Protection Bypass via MethodOverride Rewriting POST to Safe Method
Publicada em · Atualizada em
Aviso por e-mail quando ela entrar no KEV, ganhar PoC pública ou subir de nota.
13Vexday Risk Score
Sem sinal de exploração. Nenhum artefato público de exploração conhecido até agora.
ssvc Trackcvss 5.3epss 0.2%
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:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
Produtos afetados
labstack · echoCVEs relacionadas — labstack echo
No mesmo produto, das mais perigosas para as menos.
CVE-2026-55677HIGHEcho: Encoded slash (%2F) bypasses route-level protection and exposes static filesEPSS 0.7%CVE-2026-118654MEDIUMEcho static file middleware route protection bypass via encoded dot-dot traversalEPSS 0.5%CVE-2026-118653MEDIUMEcho: Rate Limiter Bypass via Spoofed X-Forwarded-For Header in Default ConfigurationEPSS 0.5%CVE-2026-118650HIGHEcho: middleware.Static: `%2F`-encoded path bypasses route/group middleware guarding a statically-served pathEPSS 0.5%CVE-2026-118261HIGHEcho: Decompress permits unbounded gzip expansion in v4EPSS 0.5%CVE-2026-118264CRITICALEcho: Rejected WebSocket upgrades can bypass Echo route-level access controlsEPSS 0.4%
Referências
https://github.com/labstack/echo/commit/b838391e2eade87ae7e5a09d7bb5087bec271ec1https://github.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5afhttps://github.com/labstack/echo/releases/tag/v4.16.0https://github.com/labstack/echo/releases/tag/v5.4.0https://github.com/labstack/echo/security/advisories/GHSA-r7w9-592q-9vg4