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
2.82% (85th 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 IDSNYK-DEBIANUNSTABLE-NODEWS-1296772
  • 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:unstable 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:unstable 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 Base Scores

version 3.1