Security mailing lists by PureSourceCode

CVE-2024-37890

HIGH 7.5CVSS 3.1

ws 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed 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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.