Live threats

All CVEs / Ws Project

CVE-2016-10518Ws Project Ws

High 7.5 No auth needed

Priority
60
CVSS 3.0
7.5
EPSS
1.9%
probability of exploitation in 30 days · percentile 81
Auth required
No
Published
May 31, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-201, CWE-119
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ws.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm ws < 1.0.1 1.0.1 npm install ws@1.0.1

Per OSV / GitHub Advisories (GHSA-2mhh-w6q8-5hxw). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
ws_projectws< 1.0.1

Official sources

References

Links published by the sources. Open them with care.