ADVISORIES

Vulnerability

CVE-2016-10518

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.

3 advisories report this vulnerability, across 3 ecosystems.

High severity All Debian 1Ubuntu 1npm 1

Advisories

  • DEBIAN-CVE-2016-10518

    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…

    CVE-2016-10518 Debian Updated 22 September 2026
  • GHSA-2mhh-w6q8-5hxw

    Remote Memory Disclosure in ws

    Low CVE-2016-10518 npm Updated 8 November 2023
  • UBUNTU-CVE-2016-10518

    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…

    CVE-2016-10518 Ubuntu Updated 8 September 2025

References