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% (81st 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% (81st 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-129354 — Critical (CVSS 10.0): A flaw has been found in D-Link DIR-600L 2.17b02. Affected by this issue is the function hnap_main of the file…
- CVE-2026-129353 — Critical (CVSS 10.0): A vulnerability was detected in D-Link DIR-600L 2.17/2.17b02. Affected by this vulnerability is the function…
- CVE-2026-129351 — Critical (CVSS 10.0): A security vulnerability has been detected in TRENDnet TEW-657BRM 1.00.1. This vulnerability affects the function…
- CVE-2026-123966 — Critical (CVSS 10.0): A vulnerability was determined in Tenda AC19 16.03.10.07. Affected by this issue is the function saveParentControlInfo…
- CVE-2026-120283 — Critical (CVSS 10.0): A vulnerability was identified in Linksys E8450 1.2.00.360516. Affected is the function strcpy of the file…
- CVE-2026-120281 — Critical (CVSS 10.0): A vulnerability was found in WAVLINK WN536AX6-A V260507. This affects the function strcpy of the file /protocol.csp of…