{"id":"GHSA-4xr6-hc3h-f6jq","aliases":["GHSA-4xr6-hc3h-f6jq","GO-2026-6940"],"related":[],"kind":"vulnerability","state":"published","title":"Unbounded allocation from peer-declared frame length in github.com/gobwas/ws","summary":"ws.ReadFrame, ws.MustReadFrame, and the wsutil message readers allocate a buffer of the payload length declared in the frame header before reading any payload bytes. A remote unauthenticated peer can send a frame header declaring a large payload length and cause an out-of-memory crash.","summaryFormat":"markdown","summarySource":"go","descriptions":[{"lang":"en","text":"ws.ReadFrame, ws.MustReadFrame, and the wsutil message readers allocate a buffer of the payload length declared in the frame header before reading any payload bytes. A remote unauthenticated peer can send a frame header declaring a large payload length and cause an out-of-memory crash.","format":"markdown","source":"go"}],"published":"2026-11-23T20:02:25.000Z","modified":"2026-11-23T20:30:11.841Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.5.0"}],"ecosystem":"Go","package":"github.com/gobwas/ws","purl":"pkg:golang/github.com/gobwas/ws","source":"go"}],"references":[{"url":"https://github.com/gobwas/ws/security/advisories/GHSA-4xr6-hc3h-f6jq","tags":["advisory"],"sources":["go"]},{"url":"https://github.com/gobwas/ws/commit/6b485812604c20a7174f3d68a64379121bcddfe2","tags":["fix"],"sources":["go"]},{"url":"https://github.com/gobwas/ws/pull/229","tags":["fix"],"sources":["go"]},{"url":"https://github.com/gobwas/ws/issues/223","tags":["report"],"sources":["go"]}],"credits":["AdamMagued"],"sources":[{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6940","url":"https://pkg.go.dev/vuln/GO-2026-6940","licence":"CC-BY-4.0","modified":"2026-11-23T20:30:11.841Z"}],"updatedAt":"2026-11-25T22:56:25.597Z"}