{"id":"GHSA-g2rq-85pp-c2j9","aliases":["GHSA-g2rq-85pp-c2j9","GO-2026-6978"],"related":[],"kind":"vulnerability","state":"published","title":"CSRF protection bypass via _method override in github.com/mikehelmick/go-bananas","summary":"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.","summaryFormat":"markdown","summarySource":"go","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"go"}],"published":"2026-11-23T20:04:43.000Z","modified":"2026-11-23T20:30:17.046Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.2"}],"ecosystem":"Go","package":"github.com/mikehelmick/go-bananas","purl":"pkg:golang/github.com/mikehelmick/go-bananas","source":"go"}],"references":[{"url":"https://github.com/mikehelmick/go-bananas/security/advisories/GHSA-g2rq-85pp-c2j9","tags":["advisory"],"sources":["go"]},{"url":"https://github.com/mikehelmick/go-bananas/commit/5b7640b0a46a4be3b02a3b90f511c5a0da6b219b","tags":["fix"],"sources":["go"]},{"url":"https://github.com/mikehelmick/go-bananas/commit/f2b0abd115b3fea1ac75bbe4eda4fb9b3d24f78f","tags":["fix"],"sources":["go"]},{"url":"https://github.com/mikehelmick/go-bananas/releases/tag/v1.0.2","tags":["web"],"sources":["go"]}],"credits":[],"sources":[{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6978","url":"https://pkg.go.dev/vuln/GO-2026-6978","licence":"CC-BY-4.0","modified":"2026-11-23T20:30:17.046Z"}],"updatedAt":"2026-11-25T22:56:25.617Z"}