Skip to content
OpenAdvisories
Unscored GHSA-4xr6-hc3h-f6jq GO-2026-6940

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

Published Nov 23, 2026 · Updated Nov 23, 2026 · Assigned by GO

Description

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 packages

EcosystemPackageAffectedFixedRecord
Go github.com/gobwas/ws < 1.5.0 1.5.0 GO-2026-6940

References