5.3
Medium
CVE-2021-32640 ws is an open source WebSocket client and server library for Node.js
Description
ws is an open source WebSocket client and server library for Node.js. A specially crafted value of the `Sec-Websocket-Protocol` header can be used to significantly slow down a ws server. The vulnerability has been fixed in ws@7.4.6 (https://github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ff). In vulnerable versions of ws, the issue can be mitigated by reducing the maximum allowed length of the request headers using the [`--max-http-header-size=size`](https://nodejs.org/api/cli.html#cli_max_http_header_size_size) and/or the [`maxHeaderSize`](https://nodejs.org/api/http.html#http_http_createserver_options_requestlistener) options.
Affected products and versions
| Product | Affected versions | Fixed in |
|---|---|---|
| ws | Versions not published |
References
- github.com github.com
- github.com github.com
- [tinkerpop-commits] 20210701 [tinkerpop] 01/03: Bumped ws to 6.2.2 to address CVE-2021-32640 CTR lists.apache.org
- security.netapp.com security.netapp.com
Timeline
- Published
- Last modified
Other CVEs of ws
The 5 CVEs of ws →
CVE-2026-62389
ws before 8.21.1 contains a memory exhaustion vulnerability in lib/receiver.js where the fragment guard only triggers…
8.7
High
CVE-2026-48779
ws is an open source WebSocket client and server for Node.js
7.5
High
CVE-2026-45736
ws is an open source WebSocket client and server for Node.js
4.4
Medium
CVE-2024-37890
ws is an open source WebSocket client and server for Node.js
7.5
High