CVE-2016-10518
HIGH 7.5CVSS 3.0Remote Memory Disclosure in ws
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.
- Published
- 31 May 2018
- Last modified
- 17 Jun 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-119CWE-201
- Also known as
- GHSA-2mhh-w6q8-5hxw
- Sources
- NVDJSONOSV GHSA-2mhh-w6q8-5hxwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ws_project | wscpe:2.3:a:ws_project:ws:*:*:*:*:*:node.js:*:* |
< 1.0.1 | 1.0.1 |
| OSV | npm | ws | < 1.0.1 | 1.0.1 |
References
- https://gist.github.com/c0nrad/e92005446c480707a74a · Patch, Third Party Advisory, WEB
- https://github.com/websockets/ws/releases/tag/1.0.1 · Release Notes, Third Party Advisory, WEB
- https://nodesecurity.io/advisories/67 · Third Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2016-10518 · ADVISORY
- https://github.com/websockets/ws/commit/29293ed11b679e0366fa0f6bb9310b330dafd795 · WEB
- https://github.com/advisories/GHSA-2mhh-w6q8-5hxw · ADVISORY
- https://www.npmjs.com/advisories/67 · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 31 May 2018)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 18 Feb 2019)