GO-2026-6978

Source
https://pkg.go.dev/vuln/GO-2026-6978
Import Source
https://vuln.go.dev/ID/GO-2026-6978.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2026-6978
Aliases
  • GHSA-g2rq-85pp-c2j9
Published
2026-11-23T20:04:43Z
Modified
2026-11-23T20:30:17Z
Summary
CSRF protection bypass via _method override in github.com/mikehelmick/go-bananas
Details

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.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2026-6978"
}
References

Affected packages

Go / github.com/mikehelmick/go-bananas

Package

Name
github.com/mikehelmick/go-bananas
View open source insights on deps.dev
Purl
pkg:golang/github.com/mikehelmick/go-bananas

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.0.2

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/mikehelmick/go-bananas/middleware",
            "symbols": [
                "MutateMethod"
            ]
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2026-6978.json"