ws
cpe:2.3:a:ws_project:ws:*:*:*:*:node.js:*:*
- >= 8.0.0, < 8.20.1
A vulnerability allowing uninitialized memory disclosure has been identified in the 'ws' WebSocket client and server for Node.js, affecting versions 8.0.0 prior to 8.20.1. The issue arises in the 'websocket.close()' method when a TypedArray is passed as the reason argument. The function fails to properly sanitize the memory buffer, leading to the potential leakage of sensitive information to the remote peer.
Exploitation of this vulnerability could result in the unauthorized disclosure of uninitialized memory, potentially leaking sensitive data to the remote peer.
The vulnerability can be reproduced by creating a WebSocket server using the 'ws' library and a client that connects to it. When the client sends a close request with a Float32Array as the reason, the server can access the uninitialized memory through the close event, demonstrating the memory disclosure.
Users can upgrade to 'ws' version 8.20.1 or later to address this vulnerability.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.