
CVE catalog
CVE-2021-32640
node-ws: CVE-2021-32640
- Severity
- Medium · CVSS 5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 2.82% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-ws | sid | 8.21.3+~cs14.19.1-1 | fixed |
| Debian | node-ws | forky | 8.21.3+~cs14.19.1-1 | fixed |
| Debian | node-ws | trixie | 8.18.1+~cs14.18.2-1 | fixed |
| Debian | node-ws | bookworm | 8.11.0+~cs13.7.3-1 | fixed |
| Ubuntu | node-ws | 16.04 | 0.7.2+ds1.349b7460-1 | vulnerable |
| Ubuntu | node-ws | 16.04 | 1.0.1+ds1.e6ddaae4-1 | vulnerable |
| Ubuntu | node-ws | 18.04 | 1.1.0+ds1.e6ddaae4-3build1 | vulnerable |
| Ubuntu | node-ws | 18.04 | 1.1.0+ds1.e6ddaae4-3ubuntu1 | vulnerable |
| Ubuntu | node-ws | 20.04 | 1.1.0+ds1.e6ddaae4-5 | vulnerable |
| Ubuntu | node-ws | 20.04 | 7.2.1-2 | vulnerable |
| Ubuntu | node-ws | 20.04 | 7.2.1-3 | vulnerable |
| Ubuntu | node-ws | 22.04 | 7.4.2+~cs18.0.8-2 | vulnerable |
| Ubuntu | node-ws | 22.04 | 7.5.5+~cs13.0.13-1 | vulnerable |
| Ubuntu | node-ws | 22.04 | 8.5.0+~cs13.3.3-2 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-ws | source | sid | 7.4.2+~cs18.0.8-2 | not yet assigned | Not reported | Not reported |
| Debian | node-ws | source | forky | 7.4.2+~cs18.0.8-2 | not yet assigned | Not reported | Not reported |
| Debian | node-ws | source | trixie | 7.4.2+~cs18.0.8-2 | not yet assigned | Not reported | Not reported |
| Debian | node-ws | source | bookworm | 7.4.2+~cs18.0.8-2 | not yet assigned | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [node-ws]Fixed
Details (2)
8.11.0+~cs13.7.3-1· all · bookwormFixed · Fixed:
7.4.2+~cs18.0.8-2dsa · node-ws · debian · bookworm; dsa · node-ws · debian · 12
8.11.0+~cs13.7.3-1· all · bookwormFixed · Fixed:
7.4.2+~cs18.0.8-2dsa · node-ws · debian · bookworm; dsa · node-ws · debian · 12
[Debian 13 (Trixie)]
- [node-ws]Fixed
Details (2)
8.18.1+~cs14.18.2-1· all · trixieFixed · Fixed:
7.4.2+~cs18.0.8-2dsa · node-ws · debian · 13
8.18.1+~cs14.18.2-1· all · trixieFixed · Fixed:
7.4.2+~cs18.0.8-2dsa · node-ws · debian · 13
Observed:
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-32640]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-32640]
- [https://security-tracker.debian.org/tracker/CVE-2021-32640]
- [https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-32640.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2948.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]