Medium severity · published May 25, 2021
CVE-2021-32640
ws is an open source WebSocket client and server library for Node.js
5.3
CVSS
2.8%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.8% · higher than 87% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
EP
E-series Performance Analyzer · Netapp
All versions, or not specified · source: NVD
WS
WS · WS Project
5.0.0 before 6.2.2; 7.0.0 before 7.4.6 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-32640
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-32640
Patch
https://github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ff
Exploit
https://github.com/websockets/ws/security/advisories/GHSA-6fc8-4gx4-v693
lists.apache.org
https://lists.apache.org/thread.html/rdfa7b6253c4d6271e31566ecd5f30b7ce1b8fb2c89d52b8c4e0f4e30%40%3Ccommits.tinkerpop.apache.org%3E
Third Party Advisory
https://security.netapp.com/advisory/ntap-20210706-0005/
More from E-series Performance Analyzer
7.8
CVE-2019-13272
Linux Kernel Improper Privilege Management Vulnerability
9.8
CVE-2021-26707
The merge-deep library before 3.0.3 for Node.js can be tricked into overwriting properties of Object.prototype or adding new properties to it
9.8
CVE-2021-23383
Prototype Pollution
9.8
CVE-2021-20231
A flaw was found in gnutls
8.8
CVE-2022-21703
Grafana is an open-source platform for monitoring and observability
