Providing a specially crafted dictionary to s2.NewDict and using it to encode data can make the encoder read out of bounds.
{ "url": "https://pkg.go.dev/vuln/GO-2026-5841", "review_status": "REVIEWED" }
{ "imports": [ { "symbols": [ "NewDict" ], "path": "github.com/klauspost/compress/s2" } ] }
"https://vuln.go.dev/ID/GO-2026-5841.json"