← Back
CVE-2024-37890
Vulnerability in ws (CVE-2024-37890)
Summary
vulnerability in ws (CVE-2024-37890). Risk of unauthorized operations or information disclosure. Exploitable via ``server.maxHeadersCount``. Mitigation: upgrade to `8.17.1` or later.
AI summary snake-internal / snake-material-v2
A vulnerability tracked as **CVE-2024-37890** has been found in ws.
Attackers can target a specific entry point like ``server.maxHeadersCount`` over the network to misuse the product.
Risk of unauthorized operations or information disclosure. CVSS score: ?/10.
What to do: upgrade ws to **8.17.1** or later.
If unsure, ask your IT team or search "ws CVE-2024-37890" on the vendor's site.
CVE-2024-37890 (ws) — CWE-476 /
Attack surface: `server.maxHeadersCount` / `maxHeaderSize`
Patched: `8.17.1` — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
❓ What is the problem
**A vulnerability** (CWE-476) exists in ws. Attackers reach the vulnerable code path via ``server.maxHeadersCount`` without authentication.
📍 Affected scope
ws — . Attack surface: `server.maxHeadersCount` / `maxHeaderSize`.
🔥 Severity
Severity: ?. Risk of unauthorized operations or information disclosure
🔧 How to fix
Update to **8.17.1**.
🛡️ Workaround
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
🔍 Detection
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run `grep -r 'ws' .` against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response Actions (7 steps)
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r 'ws' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で `ws` を grep し、稼働しているサービス・バージョンを把握する。
-
6Apply patch patch
Upgrade ws to 8.17.1ステージング環境で 8.17.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 3 で見つけた異常検知の続報チェックを含めること。
-
7Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
Affected packages
npm
ws
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.17.1"}]}]
References
- web https://github.com/websockets/ws/security/advisories/GHSA-3h5v-q93c-6h6q
- web https://github.com/websockets/ws/issues/2230
- web https://github.com/websockets/ws/pull/2231
- web https://github.com/websockets/ws/commit/22c28763234aa75a7e1b76f5c01c181260d7917f
- web https://github.com/websockets/ws/commit/4abd8f6de4b0b65ef80b3ff081989479ed93377e
- web https://github.com/websockets/ws/commit/e55e5106f10fcbaac37cfa89759e4cc0d073a52c
- web https://github.com/websockets/ws/commit/eeb76d313e2a00dd5247ca3597bba7877d064a63
- web https://github.com/advisories/GHSA-3h5v-q93c-6h6q