CVE-2021-32640
Summary
| CVE | CVE-2021-32640 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-05-25 19:15:00 UTC |
| Updated | 2023-11-07 03:35:00 UTC |
| 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 [email protected] (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. |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| ReDoS in Sec-Websocket-Protocol header · Advisory · websockets/ws · GitHub |
CONFIRM |
github.com |
|
| CVE-2021-32640 Node.js Vulnerability in NetApp Products | NetApp Product Security |
CONFIRM |
security.netapp.com |
|
| [tinkerpop-commits] 20210701 [tinkerpop] 01/03: Bumped ws to 6.2.2 to address CVE-2021-32640 CTR |
|
lists.apache.org |
|
| [security] Fix ReDoS vulnerability · websockets/ws@00c425e · GitHub |
MISC |
github.com |
|
| Pony Mail! |
MLIST |
lists.apache.org |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 180313 Debian Security Update for node-ws (CVE-2021-32640)
- 980496 Nodejs (npm) Security Update for ws (GHSA-6fc8-4gx4-v693)