GHSA-4xr6-hc3h-f6jq

GHSA-4xr6-hc3h-f6jq · GO-2026-6940 · published 23 Nov 2026 · updated 23 Nov 2026

Unbounded allocation from peer-declared frame length in github.com/gobwas/ws

5.0Medium

No exploitation in the wild has been reported. Fixed in github.com/gobwas/ws 1.5.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
go: github.com/gobwas/ws<1.5.01.5.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

GHSA-4xr6-hc3h-f6jq severity on Zeptric[![GHSA-4xr6-hc3h-f6jq](https://zeptric.io/badge/cve/GHSA-4xr6-hc3h-f6jq.svg)](https://zeptric.io/cve/GHSA-4xr6-hc3h-f6jq)