websocket-driver: Memory exhaustion triggered by small fragment frames holding long-lived references to TCP reads
- CVE-2026-140000
- GHSA-j7r2-xppq-m353
- EUVD-2026-139700
Description
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.2, StreamReader.read() uses Buffer.slice() for small reads, so small fragmented message frames can retain references to much larger TCP input Buffer objects. Before 0.8.1, unfinished fragments can retain source TCP reads until the message completes or reaches maxLength; in 0.8.1, compaction occurs after 1,000,000 fragments but can still retain up to 1,000,000 TCP inputs. An unauthenticated remote client can exploit this retention to cause substantial memory inflation and potentially exhaust server memory. This issue is fixed in version 0.8.2.
Text from the CVE.org record.
Recommendation
websocket-driver
- If you run a version before 0.8.2update to 0.8.2 or laterwebsocket-driver 0.8.2 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
faye websocket-driver-node
Affected versions Fixed in < 0.8.2 none stated websocket-drivernpm
Affected versions Fixed in before 0.8.2 0.8.2
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.