GHSA-g2rq-85pp-c2j9
Not scored
CSRF protection bypass via _method override in github.com/mikehelmick/go-bananas
- Severity
- Not scored
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| github.com/mikehelmick/go-bananas (Go) | before 1.0.2 | Go Vulnerability Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| Go Vulnerability Database | GO-2026-6978 changed 2026-11-23 | CC-BY-4.0 |