{"schemaVersion":3,"id":"CVE-2016-10518","aliases":["UBUNTU-CVE-2016-10518","DEBIAN-CVE-2016-10518","GHSA-2mhh-w6q8-5hxw"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2018-05-31T20:00:00.000Z","modified":"2024-09-17T02:57:19.095Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true}]},"epss":{"probability":0.01984,"percentile":0.80258,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":-0.031000000000000125,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.02015},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01817,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01984,"percentile":0.80258}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01817,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02015,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01984,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01984,"percentile":0.80258}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-201","name":"Insertion of Sensitive Information Into Sent Data","description":"The code transmits data to another actor, but a portion of the data includes sensitive information that should not be accessible to that actor.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/201.html"},{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer","description":"The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/119.html"}],"affected":[{"vendor":"debian","product":"node-ws","name":"node-ws","label":"node-ws","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/node-ws","purlType":"deb","versions":[{"text":"< 1.0.1+ds1.e6ddaae4-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.1+ds1.e6ddaae4-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"node-ws","name":"node-ws","label":"node-ws","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/node-ws","purlType":"deb","versions":[{"text":"< 1.0.1+ds1.e6ddaae4-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.1+ds1.e6ddaae4-1","eol":null,"hubHref":null},{"vendor":"hackerone","product":"ws node module","name":"ws node module","label":"ws node module","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 1.0.0","eol":null,"hubHref":"/vendor/hackerone/ws_node_module"},{"vendor":"Npm","product":"ws","name":"ws","label":"ws","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/ws","purlType":"npm","versions":[{"text":"< 1.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.1","eol":null,"hubHref":null},{"vendor":"ws_project","product":"ws","name":"ws","label":"ws","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.1","eol":null,"hubHref":"/vendor/ws_project/ws"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/websockets/ws/releases/tag/1.0.1","label":"github.com/websockets/ws/releases/tag/1.0.1","hostname":"github.com","tags":["X Refsource MISC","Release Notes","Third Party Advisory","REPORT","WEB"]},{"url":"https://nodesecurity.io/advisories/67","label":"nodesecurity.io/advisories/67","hostname":"nodesecurity.io","tags":["X Refsource MISC","Third Party Advisory","REPORT"]},{"url":"https://gist.github.com/c0nrad/e92005446c480707a74a","label":"gist.github.com/c0nrad/e92005446c480707a74a","hostname":"gist.github.com","tags":["X Refsource MISC","Patch","Third Party Advisory","REPORT","WEB"]},{"url":"https://ubuntu.com/security/CVE-2016-10518","label":"ubuntu.com/security/CVE-2016-10518","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-10518","label":"www.cve.org/CVERecord?id=CVE-2016-10518","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-10518","label":"security-tracker.debian.org/tracker/CVE-2016-10518","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-10518","label":"nvd.nist.gov/vuln/detail/CVE-2016-10518","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/websockets/ws/commit/29293ed11b679e0366fa0f6bb9310b330dafd795","label":"github.com/websockets/ws/commit/29293ed11b679e0366fa0f6bb9310b330dafd795","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-2mhh-w6q8-5hxw","label":"github.com/advisories/GHSA-2mhh-w6q8-5hxw","hostname":"github.com","tags":["Advisory"]},{"url":"https://www.npmjs.com/advisories/67","label":"www.npmjs.com/advisories/67","hostname":"www.npmjs.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2018-05-31T20:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-17T02:57:19.095Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T10:01:35.072Z","stale":false,"partial":false}}