CVE-2016-10518
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
wsnpm | < 1.0.1 | 1.0.1 |
Affected products
2- Range: <= 1.0.0
Patches
Vulnerability mechanics
References
7- gist.github.com/c0nrad/e92005446c480707a74anvdPatchThird Party AdvisoryWEB
- github.com/advisories/GHSA-2mhh-w6q8-5hxwghsaADVISORY
- github.com/websockets/ws/releases/tag/1.0.1nvdRelease NotesThird Party AdvisoryWEB
- nodesecurity.io/advisories/67nvdThird Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2016-10518ghsaADVISORY
- github.com/websockets/ws/commit/29293ed11b679e0366fa0f6bb9310b330dafd795ghsaWEB
- www.npmjs.com/advisories/67ghsaWEB
News mentions
0No linked articles in our index yet.