Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. ws
  4. ›
  5. CVE-2021-32640

CVE-2021-32640: Uncontrolled Resource Consumption

May 25, 2021 (updated November 7, 2023)

ws is an open source WebSocket client and server library for Node. In vulnerable versions of ws, the issue can be mitigated by reducing the maximum allowed length of the request headers.

References

  • nvd.nist.gov/vuln/detail/CVE-2021-32640

Code Behaviors & Features

Detect and mitigate CVE-2021-32640 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.0.0 before 6.2.2, all versions starting from 7.0.0 before 7.4.6

Fixed versions

  • 6.2.2
  • 7.4.6

Solution

Upgrade to versions 6.2.2, 7.4.6 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/ws/CVE-2021-32640.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:02 +0000.