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