CVE-2024-37890

Denial of service when handling a request with many HTTP headers in ws

HIGH
7.5
CVSS Score
Published: June 17, 2024 at 07:09 PM UTC
Updated: June 17, 2026 at 07:38 AM UTC
1 product affected across 1 vendorWs

Using ws by websockets?

Get instant alerts when new vulnerabilities affect ws - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 1%
SSVC
PoC

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 5.2.4v < 6.2.3v < 7.5.10v < 8.17.12.1.06.0.07.0.08.0.0
Affected range stops below 5.2.4, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.2.3, so it looks safe — our inference, not a vendor statement
Affected range stops below 7.5.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 8.17.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

SSVC — Action Prioritization

SSVCPoCAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.5HIGHGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusDEFERRED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card