{"id":"CVE-2026-140009","state":"PUBLISHED","title":"ws: Memory exhaustion DoS via unbounded automatic pong responses","description":"ws is an open source WebSocket client and server for Node.js. Prior to 5.2.8, 6.2.7, 7.5.14, and 8.23.0, a malicious WebSocket peer can send Ping frames while stopping reads, causing ws to generate and buffer automatic Pong responses without a pending-response bound. The queued Pong frames can exhaust process memory and terminate the application; disabling autoPong where available or combining rate limiting with heartbeats mitigates the issue. This issue is fixed in versions 5.2.8, 6.2.7, 7.5.14, and 8.23.0.","publishedAt":"2026-11-30T21:38:55.376Z","updatedAt":"2026-11-30T21:38:55.376Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["websockets ws"],"affected":[{"vendor":"websockets","product":"ws","versions":[{"version":"< 5.2.8","status":"affected"},{"version":">= 6.0.0, < 6.2.7","status":"affected"},{"version":">= 7.0.0, < 7.5.14","status":"affected"},{"version":">= 8.0.0, < 8.23.0","status":"affected"}]}],"references":["https://github.com/websockets/ws/security/advisories/GHSA-37g9-w4hg-h9qr","https://github.com/websockets/ws/commit/560e071478550f1227271b09993caff97753f1a1","https://github.com/websockets/ws/commit/718c33c8e1ca09a01403eaddea9119b02a63ccfe","https://github.com/websockets/ws/commit/8a10a6ad25b04b6a02c56d7237792b7e4ade12b7","https://github.com/websockets/ws/commit/ace7248f685b10a87eff882e66c5b37fbee03d63"],"weaknesses":["CWE-400","CWE-770"],"ingestedAt":"2026-11-30T21:46:06.030Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/140xxx/CVE-2026-140009.json","commit":"537f12bed441fb09ee11afe57b6eb04e6351b86e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-140009","state":"PUBLISHED","datePublished":"2026-11-30T21:38:55.376Z","dateUpdated":"2026-11-30T21:38:55.376Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-11-30T17:42:59.710Z"},"containers":{"cna":{"title":"ws: Memory exhaustion DoS via unbounded automatic pong responses","descriptions":[{"lang":"en","value":"ws is an open source WebSocket client and server for Node.js. Prior to 5.2.8, 6.2.7, 7.5.14, and 8.23.0, a malicious WebSocket peer can send Ping frames while stopping reads, causing ws to generate and buffer automatic Pong responses without a pending-response bound. The queued Pong frames can exhaust process memory and terminate the application; disabling autoPong where available or combining rate limiting with heartbeats mitigates the issue. This issue is fixed in versions 5.2.8, 6.2.7, 7.5.14, and 8.23.0."}],"affected":[{"vendor":"websockets","product":"ws","versions":[{"version":"< 5.2.8","status":"affected"},{"version":">= 6.0.0, < 6.2.7","status":"affected"},{"version":">= 7.0.0, < 7.5.14","status":"affected"},{"version":">= 8.0.0, < 8.23.0","status":"affected"}]}],"references":[{"url":"https://github.com/websockets/ws/security/advisories/GHSA-37g9-w4hg-h9qr","name":"https://github.com/websockets/ws/security/advisories/GHSA-37g9-w4hg-h9qr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/websockets/ws/commit/560e071478550f1227271b09993caff97753f1a1","name":"https://github.com/websockets/ws/commit/560e071478550f1227271b09993caff97753f1a1","tags":["x_refsource_MISC"]},{"url":"https://github.com/websockets/ws/commit/718c33c8e1ca09a01403eaddea9119b02a63ccfe","name":"https://github.com/websockets/ws/commit/718c33c8e1ca09a01403eaddea9119b02a63ccfe","tags":["x_refsource_MISC"]},{"url":"https://github.com/websockets/ws/commit/8a10a6ad25b04b6a02c56d7237792b7e4ade12b7","name":"https://github.com/websockets/ws/commit/8a10a6ad25b04b6a02c56d7237792b7e4ade12b7","tags":["x_refsource_MISC"]},{"url":"https://github.com/websockets/ws/commit/ace7248f685b10a87eff882e66c5b37fbee03d63","name":"https://github.com/websockets/ws/commit/ace7248f685b10a87eff882e66c5b37fbee03d63","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-400","lang":"en","description":"CWE-400: Uncontrolled Resource Consumption","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-770","lang":"en","description":"CWE-770: Allocation of Resources Without Limits or Throttling","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-11-30T21:38:55.376Z"},"source":{"advisory":"GHSA-37g9-w4hg-h9qr","discovery":"UNKNOWN"}}}}}