CVEFinder.io

CVE-2016-10518

⚠️ high
🔍 Scan for this CVE
Summary

A vulnerability was found in the ping functionality of the ws module before 1.0.0 which allowed clients to allocate memory by sending a ping frame. The ping functionality by default responds with a pong frame and the previously given payload of the ping frame. This is exactly what you expect, but internally ws always transforms all data that we need to send to a Buffer instance and that is where the vulnerability existed. ws didn't do any checks for the type of data it was sending. With buffers

Description

A vulnerability was found in the ping functionality of the ws module before 1.0.0 which allowed clients to allocate memory by sending a ping frame. The ping functionality by default responds with a pong frame and the previously given payload of the ping frame. This is exactly what you expect, but internally ws always transforms all data that we need to send to a Buffer instance and that is where the vulnerability existed. ws didn't do any checks for the type of data it was sending. With buffers in node when you allocate it when a number instead of a string it will allocate the amount of bytes.

CVSS Score
7.5
High
EPSS Score
0.4
Exploit Probability
Published Date
2018-05-31
First Seen: 2026-01-05
📊 Relative Risk Intelligence

This CVE is Moderate Risk - more severe than 69.0% of all 328,009 vulnerabilities in our database.

#101,817
Above average severity
Severity Percentile
Last Modified 2024-11-21
Source NVD 🔗
CVSS Vector 3.1 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CWE IDs (Weakness Types)

📦 Affected Products 1

🔗 References 3

🔗 Related CVEs 3

CVE ID Severity CVSS EPSS Summary Published
CVE-2026-45736 🔶 medium 4.4 0.0 ws is an open source WebSocket client and server for Node.js. Prior to 8.20.1, the websocket.close() implementation is v... 2026-05-15
CVE-2021-32640 🔶 medium 5.3 0.5 ws is an open source WebSocket client and server library for Node.js. A specially crafted value of the `Sec-Websocket-Pr... 2021-05-25
CVE-2016-10542 ⚠️ high 7.5 66.1 ws is a "simple to use, blazing fast and thoroughly tested websocket client, server and console for node.js, up-to-date ... 2018-05-31
These CVEs affect the same products