SecurityContext

CVE-2021-32640: ws - Denial of Service

  • Cve: CVE-2021-32640
  • Name: ws - Denial of Service
  • 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.
  • Impact: Attackers can cause significant slowdown or denial of service of the ws server by sending crafted headers.
  • Remediation: Update to ws version 7.4.6 or later; alternatively, reduce maximum allowed header size via --max-http-header-size or maxHeaderSize options.
  • Vulnerability type: denial_of_service
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.3
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
  • Epss score: 0.029
  • Epss percentile: 0.87294
  • Assignee: [email protected]
  • Published at: 2021-05-25T19:15:07Z
  • Age in days: 2009
  • Modified at: 2026-06-17T03:53:19Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 4
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-32640
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements

Cwe

IdName
CWE-400Uncontrolled Resource Consumption

Hackerone

  • Reports: 1
  • Rank: 5211

Public exploits

UrlSourceAdded date
https://github.com/websockets/ws/security/advisories/GHSA-6fc8-4gx4-v693nvd2021-05-25

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ffPatch, Third Party Advisory
https://github.com/websockets/ws/security/advisories/GHSA-6fc8-4gx4-v693Exploit, Mitigation, Patch, Third Party Advisory
https://security.netapp.com/advisory/ntap-20210706-0005/Third Party Advisory
https://lists.apache.org/thread.html/rdfa7b6253c4d6271e31566ecd5f30b7ce1b8fb2c89d52b8c4e0f4e30%40%3Ccommits.tinkerpop.apache.org%3E

Products

ProductAffectedPlatform boundSourcesUrl
ws_project:ws>= 7.0.0, < 7.4.6; >= 5.0.0, < 6.2.2nonvd/v1/products/ws_project/ws
netapp:e-series_performance_analyzerall versionsnonvd/v1/products/netapp/e-series_performance_analyzer

Projects

RepositoryLink kindsIndexedUrl
websockets/wscommit, fix, issues, package, security_advisoryyes/v1/repositories/websockets/ws

Index

  • Repositories: 321
  • Repositories high signal: 54
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2021-05-25
  • Remote: yes
  • Hackerone reports: 1
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, exposed hosts