CVE-2021-32640
CVE-2021-32640 — ReDoS in Sec-Websocket-Protocol header
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.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
3%
chance of exploitation in 30 days
CVSS base
5.3
MEDIUM
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 5.3 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-400
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1499Endpoint Denial of Service
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching //github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ff), //nodejs.org/api/cli.html#cli_max_http_header_size_size), /or, //nodejs.org/api/http.html#http_http_createserver_options_requestlistener).
References
4 on the record
- github.com/websockets/ws/security/advisories/GHSA-6fc8-4gx4-v693
x_refsource_CONFIRM
- github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ff
x_refsource_MISC
- lists.apache.org/thread.html/rdfa7b6253c4d6271e31566ecd5f30b7ce1b8fb2c89d52b8c4e0f4e30%40%3Ccommits.tinkerpop.apache.org%3E
mailing-list, x_refsource_MLIST
- security.netapp.com/advisory/ntap-20210706-0005/
x_refsource_CONFIRM
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2021-44228 Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpointsCVSS 10.0 · CISA KEV
- CVE-2020-3569 Cisco IOS XR Software DVMRP Memory Exhaustion VulnerabilityCVSS 8.6 · CISA KEV
- CVE-2020-3566 Cisco IOS XR Software DVMRP Memory Exhaustion VulnerabilityCVSS 8.6 · CISA KEV
- CVE-2026-45498 Microsoft Defender Denial of Service VulnerabilityCVSS 7.5 · CISA KEV
- CVE-2026-28318 SolarWinds Serv-U Unauthenticated Denial of Service VulnerabilityCVSS 7.5 · CISA KEV
- CVE-2023-44487 HTTP/2 Rapid Reset Attack VulnerabilityCVSS 7.5 · CISA KEV
Elsewhere on this site
- Websocketsevery CVE for this vendor
- CWE-400other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.