Home / websockets / ws / CVE-2024-37890
CVE-2024-37890: is it exploited, and which versions of websockets ws are affected and fixed?
CVE-2024-37890 is a NULL pointer dereference (crash) vulnerability in websockets ws. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:09 UTC). Affected: ws from 2.1.0 before 5.2.4, ws from 6.0.0 before 6.2.3, ws from 7.0.0 before 7.5.10 and 1 more (GitHub advisory GHSA-3h5v-q93c-6h6q). Fixed in 5.2.4, 6.2.3, 7.5.10 and 8.17.1 (GitHub advisory GHSA-3h5v-q93c-6h6q). Severity: High (7.5, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:09 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:28 UTC.
What is CVE-2024-37890?
Denial of service when handling a request with many HTTP headers in ws
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.
From the CVE record by GitHub_M, last updated August 2, 2024, 03:57 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| websockets | ws | >= 2.1.0, < 5.2.4 >= 6.0.0, < 6.2.3 >= 7.0.0, < 7.5.10 >= 8.0.0, < 8.17.1 |
As the CVE record by GitHub_M states it, last updated August 2, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | ws | >= 2.1.0, < 5.2.4 | 5.2.4 | GHSA-3h5v-q93c-6h6q |
| npm | ws | >= 6.0.0, < 6.2.3 | 6.2.3 | GHSA-3h5v-q93c-6h6q |
| npm | ws | >= 7.0.0, < 7.5.10 | 7.5.10 | GHSA-3h5v-q93c-6h6q |
| npm | ws | >= 8.0.0, < 8.17.1 | 8.17.1 | GHSA-3h5v-q93c-6h6q |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated May 13, 2026. Summary: ws affected by a DoS when handling a request with many HTTP headers.
How severe is CVE-2024-37890?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-37890 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: partial (CISA ADP, June 18, 2024)
- EPSS
- 1.36% probability of exploitation activity in the next 30 days, percentile 72.6 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-476 NULL Pointer Dereference
Where are the vendor advisories and references?
- https://github.com/websockets/ws/security/advisories/GHSA-3h5v-q93c-6h6q x_refsource_CONFIRM
- https://github.com/websockets/ws/issues/2230 x_refsource_MISC
- https://github.com/websockets/ws/pull/2231 x_refsource_MISC
- https://github.com/websockets/ws/commit/22c28763234aa75a7e1b76f5c01c181260d7917f x_refsource_MISC
- https://github.com/websockets/ws/commit/4abd8f6de4b0b65ef80b3ff081989479ed93377e x_refsource_MISC
- https://github.com/websockets/ws/commit/e55e5106f10fcbaac37cfa89759e4cc0d073a52c x_refsource_MISC
- https://github.com/websockets/ws/commit/eeb76d313e2a00dd5247ca3597bba7877d064a63 x_refsource_MISC
- https://nodejs.org/api/http.html#servermaxheaderscount x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- June 10, 2024
- Published
- June 17, 2024, 19:09 UTC
- CVE record updated
- August 2, 2024, 03:57 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 07:38 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:28 UTC; KEV December 3, 2026, 16:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect ws?
- Nov 30, 2026CVE-2026-140009 websockets ws: denial of service (uncontrolled resource consumption)
- Jun 16, 2026CVE-2026-48779 websockets ws: denial of service (uncontrolled resource consumption)
- May 15, 2026CVE-2026-45736 websockets ws: use of uninitialized resource
- May 25, 2021CVE-2021-32640 websockets ws: denial of service (uncontrolled resource consumption)
Questions about CVE-2024-37890
Is CVE-2024-37890 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:09 UTC. FIRST's EPSS gives it a 1.36% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of websockets ws are affected by CVE-2024-37890?
ws from 2.1.0 before 5.2.4, ws from 6.0.0 before 6.2.3, ws from 7.0.0 before 7.5.10 and ws from 8.0.0 before 8.17.1, per the GitHub advisory GHSA-3h5v-q93c-6h6q. The tables above give every range the sources list.
Which version fixes CVE-2024-37890?
5.2.4, 6.2.3, 7.5.10 and 8.17.1, per the GitHub advisory GHSA-3h5v-q93c-6h6q. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-37890?
High (7.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2024-37890?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.