# GHSA-g2rq-85pp-c2j9: CSRF protection bypass via _method override in github.com/mikehelmick/go-bananas

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-11-23T20:04:43.000Z
- Modified: 2026-11-23T20:30:17.046Z
- Also known as: GO-2026-6978

## Description

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.

(As written by Go Vulnerability Database.)

## Affected

- github.com/mikehelmick/go-bananas (Go): before 1.0.2

## References

- <https://github.com/mikehelmick/go-bananas/security/advisories/GHSA-g2rq-85pp-c2j9> (advisory)
- <https://github.com/mikehelmick/go-bananas/commit/5b7640b0a46a4be3b02a3b90f511c5a0da6b219b> (fix)
- <https://github.com/mikehelmick/go-bananas/commit/f2b0abd115b3fea1ac75bbe4eda4fb9b3d24f78f> (fix)
- <https://github.com/mikehelmick/go-bananas/releases/tag/v1.0.2> (web)

## Sources

- Go Vulnerability Database: [GO-2026-6978](https://pkg.go.dev/vuln/GO-2026-6978), CC-BY-4.0, modified 2026-11-23

---

Page: https://cve.day/GHSA-g2rq-85pp-c2j9 · Whole record: https://cve.day/GHSA-g2rq-85pp-c2j9.json · Rebuilt by cve.day 2026-11-25T22:56:25.617Z
