CVE-2024-37890
HIGH 7.5CVSS 3.1ws affected by a DoS when handling a request with many HTTP headers
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.
- Published
- 17 Jun 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-476
- Also known as
- GHSA-3h5v-q93c-6h6q
- Sources
- NVDJSONOSV GHSA-3h5v-q93c-6h6qJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | ws | >= 2.1.0, < 5.2.4 | 5.2.4 |
| OSV | npm | ws | >= 6.0.0, < 6.2.3 | 6.2.3 |
| OSV | npm | ws | >= 7.0.0, < 7.5.10 | 7.5.10 |
| OSV | npm | ws | >= 8.0.0, < 8.17.1 | 8.17.1 |
References
- 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/websockets/ws/issues/2230 · WEB
- https://github.com/websockets/ws/pull/2231 · WEB
- https://github.com/websockets/ws/security/advisories/GHSA-3h5v-q93c-6h6q · WEB
- https://nodejs.org/api/http.html#servermaxheaderscount
- https://github.com/websockets/ws · PACKAGE
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 17 Jun 2024)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 17 Jun 2024)