ws に大量の自動Pong応答でメモリを枯渇させられる脆弱性
Summary
悪意のあるWebSocketの相手がPingフレームを送り続けると、ws がPong応答を上限なくメモリに溜め込み、アプリケーションが停止するおそれがあります。影響するのは5.2.8未満、6.2.7未満、7.5.14未満、8.23.0未満のwsで、5.2.8、6.2.7、7.5.14、8.23.0で修正されています。修正版への更新を優先してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
悪意のあるWebSocketの相手がPingフレームを送り続けると、ws がPong応答を上限なくメモリに溜め込み、アプリケーションが停止するおそれがあります。影響するのは5.2.8未満、6.2.7未満、7.5.14未満、8.23.0未満のwsで、5.2.8、6.2.7、7.5.14、8.23.0で修正されています。修正版への更新を優先してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| websocketsws | — | Not listed |
| npmws |
≥ 8.0.0, < 8.23.0→ 8.23.0 |
8.23.0 |
Original description The description as published by the source.
ws is an open source WebSocket client and server for Node.js. Prior to 5.2.8, 6.2.7, 7.5.14, and 8.23.0, a malicious WebSocket peer can send Ping frames while stopping reads, causing ws to generate and buffer automatic Pong responses without a pending-response bound. The queued Pong frames can exhaust process memory and terminate the application; disabling autoPong where available or combining rate limiting with heartbeats mitigates the issue. This issue is fixed in versions 5.2.8, 6.2.7, 7.5.14, and 8.23.0.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- patch github.com
- patch github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com