Skip to content

CVE-2024-37890 Denial of service when handling a request with many HTTP headers in ws

HighCVSS 7.5 EPSS 1.4%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial
Technology
UbuntuDebian

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 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.

Upgrade path

9 packages: 4 fixed, 5 with no fix yet.

PackageAffectedFixed inStatus
debian/node-ws(Debian 12) = 8.11.0+~cs13.7.3-1; = 8.11.0+~cs13.7.3-2; = 8.18.0+~cs13.7.11-1; = 8.18.0+~cs14.5.15-1 +7 more No fix listed No fix yet
ubuntu/node-ws(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/node-ws(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/node-ws(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/node-ws(Ubuntu 26.10) All versions No fix listed No fix yet
debian/node-ws(Debian 13) < 8.18.0+~cs13.7.11-1 8.18.0+~cs13.7.11-1 Fixed
debian/node-ws(Debian 14) < 8.18.0+~cs13.7.11-1 8.18.0+~cs13.7.11-1 Fixed
npm ws(npm) >= 2.1.0, < 5.2.4; >= 6.0.0, < 6.2.3; >= 7.0.0, < 7.5.10; >= 8.0.0, < 8.17.1 5.2.4, 6.2.3, 7.5.10, 8.17.1 Fixed
websockets ws < 5.2.4; < 6.2.3; < 7.5.10; < 8.17.1 +8 more 5.2.4, 6.2.3, 7.5.10, 8.17.1 Fixed

Affected products

ProductAffected versionsFixed in
debian/node-ws(Debian:12) All versions No fix listed
debian/node-ws(Debian:12) = 8.11.0+~cs13.7.3-1 No fix listed
debian/node-ws(Debian:12) = 8.11.0+~cs13.7.3-2 No fix listed
debian/node-ws(Debian:12) = 8.18.0+~cs13.7.11-1 No fix listed
debian/node-ws(Debian:12) = 8.18.0+~cs14.5.15-1 No fix listed
debian/node-ws(Debian:12) = 8.18.1+~cs14.18.2-1 No fix listed
debian/node-ws(Debian:12) = 8.19.0+~cs14.19.1-1 No fix listed
debian/node-ws(Debian:12) = 8.20.1+~cs14.19.1-1 No fix listed
debian/node-ws(Debian:12) = 8.21.0+~cs14.19.1-1 No fix listed
debian/node-ws(Debian:12) = 8.21.1+~cs14.19.1-1 No fix listed
debian/node-ws(Debian:12) = 8.21.3+~cs14.19.1-1 No fix listed
debian/node-ws(Debian:13) < 8.18.0+~cs13.7.11-1 8.18.0+~cs13.7.11-1
debian/node-ws(Debian:14) < 8.18.0+~cs13.7.11-1 8.18.0+~cs13.7.11-1
npm ws(npm) >= 2.1.0, < 5.2.4 5.2.4
npm ws(npm) >= 6.0.0, < 6.2.3 6.2.3
npm ws(npm) >= 7.0.0, < 7.5.10 7.5.10
npm ws(npm) >= 8.0.0, < 8.17.1 8.17.1
ubuntu/node-ws(Ubuntu:22.04) All versions No fix listed
websockets ws = >= 2.1.0, < 5.2.4 No fix listed
websockets ws = >= 6.0.0, < 6.2.3 No fix listed
websockets ws = >= 7.0.0, < 7.5.10 No fix listed
websockets ws = >= 8.0.0, < 8.17.1 No fix listed
websockets ws = 2.1.0 No fix listed
websockets ws < 5.2.4 5.2.4
websockets ws = 6.0.0 No fix listed
Show 8 more
ProductAffected versionsFixed in
websockets ws < 6.2.3 6.2.3
websockets ws = 7.0.0 No fix listed
websockets ws < 7.5.10 7.5.10
websockets ws = 8.0.0 No fix listed
websockets ws < 8.17.1 8.17.1
ubuntu/node-ws(Ubuntu:24.04) All versions No fix listed
ubuntu/node-ws(Ubuntu:26.04) All versions No fix listed
ubuntu/node-ws(Ubuntu:26.10) All versions No fix listed

References