GHSA-g2rq-85pp-c2j9

GHSA-g2rq-85pp-c2j9 · GO-2026-6978 · published 23 Nov 2026 · updated 23 Nov 2026

CSRF protection bypass via _method override in github.com/mikehelmick/go-bananas

5.0Medium

No exploitation in the wild has been reported. Fixed in github.com/mikehelmick/go-bananas 1.0.2.

middleware.MutateMethod accepts a _method override from the query string or request body and allows overriding the HTTP method to safe methods such as GET. When installed as router middleware ahead of middleware.HandleCSRF, a cross-site POST request with _method=GET is routed to the POST handler while HandleCSRF observes a GET request and skips CSRF token validation.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
go: github.com/mikehelmick/go-bananas<1.0.21.0.2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

GHSA-g2rq-85pp-c2j9 severity on Zeptric[![GHSA-g2rq-85pp-c2j9](https://zeptric.io/badge/cve/GHSA-g2rq-85pp-c2j9.svg)](https://zeptric.io/cve/GHSA-g2rq-85pp-c2j9)