websocket-driverの脆弱性により細工されたハンドシェイクでサービスが停止するおそれ
Summary
websocket-driverの0.8.0より前のバージョンには、draft76ハンドシェイクの処理に脆弱性があり、認証のない遠隔のクライアントから細工されたSec-WebSocket-Key1ヘッダーを送ると、Node.js v22以前の環境でプロセスが異常終了するおそれがあります。影響を受けるのはwebsocket-driver-nodeパッケージで、修正版の0.8.0が公開されています。0.8.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-driverの0.8.0より前のバージョンには、draft76ハンドシェイクの処理に脆弱性があり、認証のない遠隔のクライアントから細工されたSec-WebSocket-Key1ヘッダーを送ると、Node.js v22以前の環境でプロセスが異常終了するおそれがあります。影響を受けるのはwebsocket-driver-nodeパッケージで、修正版の0.8.0が公開されています。0.8.0へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| fayewebsocket-driver-node | — | Not listed |
| npmwebsocket-driver |
< 0.8.0→ 0.8.0 |
0.8.0 |
Original description The description as published by the source.
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.0, the draft76 handshake parser derives integers from Sec-WebSocket-Key1 and Sec-WebSocket-Key2 by extracting digits and dividing by the number of spaces, then writes the results as unsigned 32-bit values. An unauthenticated remote client can supply a key whose derived value exceeds 32 bits, causing a Buffer range exception that crashes the process on Node.js v22 and below. This issue is fixed in version 0.8.0.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- web github.com