{"api_version":"1","generated_at":"2026-04-23T16:54:17+00:00","cve":"CVE-2016-10518","urls":{"html":"https://cve.report/CVE-2016-10518","api":"https://cve.report/api/cve/CVE-2016-10518.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2016-10518","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2016-10518"},"summary":{"title":"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.","state":"PUBLIC","assigner":"support@hackerone.com","published_at":"2018-05-31 20:29:00","updated_at":"2019-10-09 23:16:00"},"problem_types":["CWE-119"],"metrics":[],"references":[{"url":"https://gist.github.com/c0nrad/e92005446c480707a74a","name":"https://gist.github.com/c0nrad/e92005446c480707a74a","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"Incorrect advisory https://nodesecurity.io/advisories/67 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://nodesecurity.io/advisories/67","name":"https://nodesecurity.io/advisories/67","refsource":"MISC","tags":["Third Party Advisory"],"title":"Node Security Platform | Advisory","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/websockets/ws/releases/tag/1.0.1","name":"https://github.com/websockets/ws/releases/tag/1.0.1","refsource":"MISC","tags":["Release Notes","Third Party Advisory"],"title":"Release Buffer vulnerability · websockets/ws · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-10518","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-10518","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2016","cve_id":"10518","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ws_project","cpe5":"ws","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"},{"cve_year":"2016","cve_id":"10518","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ws_project","cpe5":"ws","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2016-10518","qid":"983138","title":"Nodejs (npm) Security Update for ws (GHSA-2mhh-w6q8-5hxw)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"support@hackerone.com","DATE_PUBLIC":"2018-04-26T00:00:00","ID":"CVE-2016-10518","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"ws node module","version":{"version_data":[{"version_value":"<= 1.0.0"}]}}]},"vendor_name":"HackerOne"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Information Exposure Through Sent Data (CWE-201)"}]}]},"references":{"reference_data":[{"name":"https://github.com/websockets/ws/releases/tag/1.0.1","refsource":"MISC","url":"https://github.com/websockets/ws/releases/tag/1.0.1"},{"name":"https://nodesecurity.io/advisories/67","refsource":"MISC","url":"https://nodesecurity.io/advisories/67"},{"name":"https://gist.github.com/c0nrad/e92005446c480707a74a","refsource":"MISC","url":"https://gist.github.com/c0nrad/e92005446c480707a74a"}]}},"nvd":{"publishedDate":"2018-05-31 20:29:00","lastModifiedDate":"2019-10-09 23:16:00","problem_types":["CWE-119"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":true,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:ws_project:ws:*:*:*:*:*:node.js:*:*","versionEndExcluding":"1.0.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2016","CveId":"10518","Ordinal":"113736","Title":"CVE-2016-10518","CVE":"CVE-2016-10518","Year":"2016"},"notes":[{"CveYear":"2016","CveId":"10518","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2016","CveId":"10518","Ordinal":"2","NoteData":"2018-05-31","Type":"Other","Title":"Published"},{"CveYear":"2016","CveId":"10518","Ordinal":"3","NoteData":"2018-05-31","Type":"Other","Title":"Modified"}]}}}