Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-32640

5.3 · MEDIUM
Published May 25, 2021 ws_project CWE-400 EPSS 2.82% (86th pctl)

Overview

CVE-2021-32640 is a medium-severity vulnerability affecting ws_project ws. It was published on May 25, 2021 and has a CVSS 3.1 base score of 5.3 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.3, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories and patches from ws_project. Update ws to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
ws_project ws >= 5.0.0, < 6.2.2 Affected

Frequently Asked Questions

What is CVE-2021-32640?

CVE-2021-32640 is a medium-severity vulnerability affecting ws_project ws. It was published on May 25, 2021 and has a CVSS 3.1 base score of 5.3 (MEDIUM).

How severe is CVE-2021-32640?

This vulnerability has a CVSS 3.1 base score of 5.3, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2021-32640?

Check the references section for vendor advisories and patches from ws_project. Update ws to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-32640?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-32640 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.