CVE-2016-10518
CVE-2016-10518 is a high-severity vulnerability in Ws Project Ws with a CVSS 3.x base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-119.
Key facts
- Severity: High (CVSS 3.x base score 7.5)
- CVSS v2: 5.0
- EPSS exploit prediction: 2% (79th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-119
- Affected product: Ws Project Ws
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2016-10518?
- 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.
- How severe is CVE-2016-10518?
- CVE-2016-10518 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
- Is CVE-2016-10518 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 2% (79th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2016-10518?
- CVE-2016-10518 affects Ws Project Ws. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2016-10518?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2016-10518 published?
- CVE-2016-10518 was published on 2018-05-31 and last updated on 2026-06-17.
References
- https://gist.github.com/c0nrad/e92005446c480707a74a
- https://github.com/websockets/ws/releases/tag/1.0.1
- https://nodesecurity.io/advisories/67
Affected products (1)
- cpe:2.3:a:ws_project:ws:*:*:*:*:*:node.js:*:*
More vulnerabilities in Ws Project Ws
- CVE-2026-48779 — High (CVSS 7.5): ws is an open source WebSocket client and server for Node.js. All versions from 1.1.0 up to (but not including) 5.2.5,…
- CVE-2016-10542 — High (CVSS 7.5): ws is a "simple to use, blazing fast and thoroughly tested websocket client, server and console for node.js, up-to-date…
- CVE-2021-32640 — Medium (CVSS 5.3): ws is an open source WebSocket client and server library for Node.js. A specially crafted value of the…
- CVE-2026-45736 — Medium (CVSS 4.4): ws is an open source WebSocket client and server for Node.js. Prior to 8.20.1, the websocket.close() implementation is…
All CVEs affecting Ws Project Ws →
Other CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) vulnerabilities
- CVE-2026-2778 — Critical (CVSS 10.0): Sandbox escape due to incorrect boundary conditions in the DOM: Core & HTML component. This vulnerability was fixed in…
- CVE-2026-2776 — Critical (CVSS 10.0): Sandbox escape due to incorrect boundary conditions in the Telemetry component in External Software. This vulnerability…
- CVE-2025-1866 — Critical (CVSS 10.0): Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in warmcat libwebsockets allows…
- CVE-2022-27625 — Critical (CVSS 10.0): A vulnerability regarding improper restriction of operations within the bounds of a memory buffer is found in the…
- CVE-2022-27624 — Critical (CVSS 10.0): A vulnerability regarding improper restriction of operations within the bounds of a memory buffer is found in the…
- CVE-2020-11896 — Critical (CVSS 10.0): The Treck TCP/IP stack before 6.0.1.66 allows Remote Code Execution, related to IPv4 tunneling.