VDB

CVE-2016-10518

CVE-2016-10518 PUBLISHED CVSS 7.5 HIGH

Remote Memory Disclosure in ws

Reported by hackerone · Published May 31, 2018

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.

Risk scores

CVSS 3.0
7.5
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected products

VendorProductVersions
HackerOnews node module<= 1.0.0
npmws0
HackerOnews node module0
ws_projectws

Timeline

  • May 31, 2018 CVE Published
  • Feb 4, 2022 EPSS Score (30 in total, the first dated here)
  • Sep 17, 2024 CVE Updated
  • Mar 10, 2026 Security Advisory
  • Oct 10, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2016-10518
vulnetix vdb fixes CVE-2016-10518

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2016-10518/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›