Resource Exhaustion Affecting node-ws package, versions <7.4.2+~cs18.0.8-2


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.28% (69th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Resource Exhaustion vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DEBIAN13-NODEWS-5690471
  • published26 May 2021
  • disclosed25 May 2021

Introduced: 25 May 2021

CVE-2021-32640  (opens in a new tab)
CWE-400  (opens in a new tab)

How to fix?

Upgrade Debian:13 node-ws to version 7.4.2+~cs18.0.8-2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-ws package and not the node-ws package as distributed by Debian. See How to fix? for Debian:13 relevant fixed versions and status.

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 and/or the maxHeaderSize options.

CVSS Scores

version 3.1