CVE-2026-140009
Published:November 30, 2026
Updated:December 01, 2026
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 Packages
https://github.com/websockets/ws.git (GITHUB):
Affected version(s) >=v0.2.0 <5.2.8 || >=0.4.32 <5.2.8 || >=1.0.0 <5.2.8 || >=2.0.0-beta.0 <5.2.8 || >=2.0.0 <5.2.8 || >=3.0.0 <5.2.8 || >=4.0.0 <5.2.8 || >=5.0.0 <5.2.8Fix Suggestion:
Update to version 5.2.8https://github.com/websockets/ws.git (GITHUB):
Affected version(s) >=7.0.0 <7.5.14Fix Suggestion:
Update to version 7.5.14https://github.com/websockets/ws.git (GITHUB):
Affected version(s) >=6.0.0 <6.2.7Fix Suggestion:
Update to version 6.2.7https://github.com/websockets/ws.git (GITHUB):
Affected version(s) >=8.0.0 <8.23.0Fix Suggestion:
Update to version 8.23.0ws (NPM):
Affected version(s) >=7.0.0 <7.5.14Fix Suggestion:
Update to version 7.5.14ws (NPM):
Affected version(s) >=4.0.0 <5.2.8 || >=1.0.0 <5.2.8 || >=5.0.0 <5.2.8 || >=3.0.0 <5.2.8 || >=2.0.0 <5.2.8 || >=0.2.6 <5.2.8 || >=2.0.0-beta.0 <5.2.8Fix Suggestion:
Update to version 5.2.8ws (NPM):
Affected version(s) >=8.0.0 <8.23.0Fix Suggestion:
Update to version 8.23.0ws (NPM):
Affected version(s) >=6.0.0 <6.2.7Fix Suggestion:
Update to version 6.2.7ws (NPM):
Affected version(s) >=0.2.6 <5.2.8Fix Suggestion:
Update to version 5.2.8Related ResourcesĀ (12)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
EPSS
Base Score:
0.77