CVE-2016-10518: hackerone ws node module
Vulnerability summary
CVE-2016-10518 is a high (CVSS 7.5) vulnerability in hackerone ws node module. EPSS estimates a 1.98% chance of exploitation in the next 30 days, higher than 80.2% of scored vulnerabilities.
Timeline
- 31-05-2018PublishedVulnerability first disclosed.
- 17-09-2024Last modifiedVulnerability information updated.
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 metrics
4 scores · 3 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
1.98%
Chance of exploitation in the next 30 days
Percentile
80%
Versus all other CVEs
30-day change
-0.03 pp
From 2.02% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-201Insertion of Sensitive Information Into Sent DataThe code transmits data to another actor, but a portion of the data includes sensitive information that should not be accessible to that actor.
- CWE-119Improper Restriction of Operations within the Bounds of a Memory BufferThe product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.
Affected systems
Debian1 product
- node-ws< 1.0.1+ds1.e6ddaae4-1
Hackerone1 product
- ws node module≤ 1.0.0
Npm1 product
- ws< 1.0.1
Ubuntu1 product
- node-ws< 1.0.1+ds1.e6ddaae4-1
Ws_project1 product
- ws< 1.0.1
5 vendors · 5 products
References
10 links- github.com/websockets/ws/releases/tag/1.0.1X Refsource MISCRelease NotesThird Party AdvisoryREPORTWEB