REDHAT-BUG-2489661: High severity npm/ws vulnerability
ws is an open source WebSocket client and server for Node.js. All versions from 1.1.0 up to (but not including) 5.2.5, from 6.0.0 up to 6.2.4, from 7.0.0 up to 7.5.11, and from 8.0.0 up to 8.21.0 are affected by a memory exhaustion DoS vulnerability. A peer can send a high volume of exceptionally small fragments and data chunks, with modest network traffic, to force the remote peer into allocating and holding structural wrappers that consume far more memory than the default documented message-size limit, leading to process termination due to OOM. This issue has been fixed in versions 5.2.5, 6.2.4, 7.5.11, and 8.21.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
wsto a version that resolves this vulnerability.Fixed in 5.2.5 - Upgrade
Upgrade
wsto a version that resolves this vulnerability.Fixed in 6.2.4 - Upgrade
Upgrade
wsto a version that resolves this vulnerability.Fixed in 7.5.11 - Upgrade
Upgrade
wsto a version that resolves this vulnerability.Fixed in 8.21.0
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2489661?
The severity of REDHAT-BUG-2489661 is rated as high with a score of 7.
How do I fix REDHAT-BUG-2489661?
To fix REDHAT-BUG-2489661, you need to upgrade the ws library to a version that is not affected by the vulnerability, specifically to versions 5.2.5, 6.2.4, 7.5.11, or 8.21.0 and above.
What is the impact of REDHAT-BUG-2489661?
The impact of REDHAT-BUG-2489661 is a memory exhaustion denial-of-service (DoS) vulnerability that could allow a peer to incapacitate the service.
Which versions of ws are affected by REDHAT-BUG-2489661?
Versions of ws affected by REDHAT-BUG-2489661 include all versions from 1.1.0 up to (but not including) 5.2.5, from 6.0.0 up to 6.2.4, from 7.0.0 up to 7.5.11, and from 8.0.0 up to 8.21.0.
When was REDHAT-BUG-2489661 published?
REDHAT-BUG-2489661 was published on June 16, 2026.