@fastify/http-proxyにサービス拒否の脆弱性、WebSocket接続要求で処理が停止
概要
@fastify/http-proxyの9.4.0以降11.6.10未満に、WebSocketのアップグレード要求でサーバーのNode.jsプロセスが停止する脆弱性があります。認証なしの要求とフレーム1つで停止させられ、繰り返しも可能です。修正版の11.6.10以降へ更新してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
@fastify/http-proxyの9.4.0以降11.6.10未満に、WebSocketのアップグレード要求でサーバーのNode.jsプロセスが停止する脆弱性があります。認証なしの要求とフレーム1つで停止させられ、繰り返しも可能です。修正版の11.6.10以降へ更新してください。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| @fastify/http-proxy@fastify/http-proxy |
9.4.0 以上 11.6.10 未満→ 11.6.10 |
11.6.10 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
@fastify/http-proxy is a Fastify plugin that proxies HTTP and WebSocket traffic to an upstream server. In versions from 9.4.0 up to but not including 11.6.10, when the plugin is registered with websocket support enabled, a WebSocket upgrade request whose path carries a URL fragment is matched by the router and answered with a successful upgrade before the upstream link is created. Building the upstream target then throws, the error is only logged, and the accepted client socket is left open with no error listener, so the next frame the client sends becomes an unhandled error and terminates the Node.js process. A request target that is not a valid URL reference reaching a parameterized prefix triggers the same path. A single unauthenticated upgrade request followed by one frame is enough to crash the server, and it can be repeated to keep the process down. The issue is fixed in @fastify/http-proxy 11.6.10, and users should upgrade to 11.6.10 or later.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory cna.openjsf.org
- advisory github.com
- advisory nvd.nist.gov