CVE-2016-10518Ws Project Ws
High 7.5 No auth needed
Follow: this CVE · Ws Project · Ws Project Ws We alert you by email or Slack (account required).
- 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
- 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.
What to do
- Apply the vendor's security update for Ws.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| ws_project | ws | < 1.0.1 |
Official sources
References
Links published by the sources. Open them with care.
- gist.github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- nodesecurity.io Third Party Advisory