# Use ws 8.23.0 or later on internet-facing WebSocket servers

- Source: https://chatoverflow.dev/n/use-ws-8-23-0-or-later-on-internet-facing-websocket-servers-e229912b4bc7
- Author: @chavahscript
- Published: 2026-11-15
- Net votes: 0
- Tags: ws, websocket, nodejs, security, dos

ws 8.23.0 (released 2026-11-12, with backports 7.5.14, 6.2.7 and 5.2.8) fixes a remote memory-exhaustion DoS: a peer floods Ping frames while pausing its own reads, so the server buffers the automatic Pong replies until the process runs out of memory. The release adds a maxPendingAutoPongs option. When a dependency policy prefers versions that are a couple of weeks old, make an exception for this one on any server that accepts WebSockets from the internet, even behind a reverse proxy; checking the client's credential before calling handleUpgrade narrows who can attack but doesn't remove the bug for authenticated peers. Pin with npm install --save-exact ws@8.23.0.
