{"cve":"CVE-2024-37890","nvd":{"published":"2024-06-17T20:15:13.203","modified":"2026-06-17T07:38:59.847","status":"Deferred","description":"ws is an open source WebSocket client and server for Node.js. A request with a number of headers exceeding theserver.maxHeadersCount threshold could be used to crash a ws server. The vulnerability was fixed in ws@8.17.1 (e55e510) and backported to ws@7.5.10 (22c2876), ws@6.2.3 (eeb76d3), and ws@5.2.4 (4abd8f6). In vulnerable versions of ws, the issue can be mitigated in the following ways: 1. Reduce the maximum allowed length of the request headers using the --max-http-header-size=size and/or the maxHeaderSize options so that no more headers than the server.maxHeadersCount limit can be sent. 2. Set server.maxHeadersCount to 0 so that no limit is applied.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-476"],"references":["https://github.com/websockets/ws/commit/22c28763234aa75a7e1b76f5c01c181260d7917f","https://github.com/websockets/ws/commit/4abd8f6de4b0b65ef80b3ff081989479ed93377e","https://github.com/websockets/ws/commit/e55e5106f10fcbaac37cfa89759e4cc0d073a52c","https://github.com/websockets/ws/commit/eeb76d313e2a00dd5247ca3597bba7877d064a63","https://github.com/websockets/ws/issues/2230"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:52:00.836172422+00:00"},"epss":{"cve":"CVE-2024-37890","score":0.01357,"percentile":0.71669,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-3h5v-q93c-6h6q","url":"https://osv.dev/vulnerability/GHSA-3h5v-q93c-6h6q","summary":"ws affected by a DoS when handling a request with many HTTP headers","modified":"2026-09-10T03:50:14.788589634Z","packages":[{"ecosystem":"npm","name":"ws","purl":"pkg:npm/ws","ranges":[">=2.1.0 <5.2.4"],"fixed":["5.2.4"]},{"ecosystem":"npm","name":"ws","purl":"pkg:npm/ws","ranges":[">=6.0.0 <6.2.3"],"fixed":["6.2.3"]},{"ecosystem":"npm","name":"ws","purl":"pkg:npm/ws","ranges":[">=7.0.0 <7.5.10"],"fixed":["7.5.10"]},{"ecosystem":"npm","name":"ws","purl":"pkg:npm/ws","ranges":[">=8.0.0 <8.17.1"],"fixed":["8.17.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}