CVE-2024-37890 Details
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 [email protected] (e55e510) and backported to [email protected] (22c2876), [email protected] (eeb76d3), and [email protected] (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.
A denial-of-service vulnerability has been identified in the ws library, which is a WebSocket client and server for Node.js. The issue arises when a request contains a number of headers that exceed the server's maximum headers count, causing the server to crash. This vulnerability is present in ws versions 5.0.0 prior to 5.2.4, 6.0.0 prior to 6.2.3, 7.0.0 prior to 7.5.10, and 8.0.0 prior to 8.17.1.
Users can upgrade to ws versions 5.2.4, 6.2.3, 7.5.10, or 8.17.1, where this vulnerability has been fixed. Alternatively, the maximum allowed length of request headers can be reduced using the --max-http-header-size option or by setting server.maxHeadersCount to 0 to remove the limit.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 17, 2024CISA-ADP
Assessed Jun 18, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| ws | >= 2.1.0, < 5.2.4 (semver) >= 6.0.0, < 6.2.3 (semver) >= 7.0.0, < 7.5.10 (semver) >= 8.0.0, < 8.17.1 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| Jun 17, 2024 | New CVE Received | [email protected] |
Volerion