CVE-2026-48779: CWE-400: Uncontrolled Resource Consumption in websockets ws
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.
AI Analysis
Technical Summary
CVE-2026-48779 affects the ws WebSocket client and server library for Node.js. The vulnerability arises from the ability of a remote attacker to send a large number of exceptionally small WebSocket fragments and data chunks. This forces the affected system to allocate and maintain structural wrappers that consume significantly more memory than the documented message-size limit, resulting in process termination due to out-of-memory conditions. The flaw is classified under CWE-400 (Uncontrolled Resource Consumption), CWE-770, and CWE-1050. The vulnerability affects multiple version ranges: >=1.1.0 <5.2.5, >=6.0.0 <6.2.4, >=7.0.0 <7.5.11, and >=8.0.0 <8.21.0. Fixes have been released in versions 5.2.5, 6.2.4, 7.5.11, and 8.21.0. Red Hat's advisory confirms the impact and notes that no suitable mitigation other than upgrading is currently available.
Potential Impact
Successful exploitation results in a denial of service condition by exhausting memory resources on the affected system, causing the ws process to terminate. This disrupts WebSocket communication services relying on the ws library, potentially impacting availability. There is no impact on confidentiality or integrity. The CVSS v3.1 score is 7.5 (High), reflecting a network attack vector with low complexity and no required privileges or user interaction.
Mitigation Recommendations
A fix is available in ws versions 5.2.5, 6.2.4, 7.5.11, and 8.21.0. Users should upgrade to these or later versions to remediate the vulnerability. Red Hat advisories indicate that no effective mitigation other than upgrading currently meets their criteria for ease of use, applicability, and stability. Therefore, upgrading is the recommended remediation.
CVE-2026-48779: CWE-400: Uncontrolled Resource Consumption in websockets ws
Description
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.
CVSS v3.1
Score 7.5high
Affected software
websockets
ws
pkg:npm/wsRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-48779 affects the ws WebSocket client and server library for Node.js. The vulnerability arises from the ability of a remote attacker to send a large number of exceptionally small WebSocket fragments and data chunks. This forces the affected system to allocate and maintain structural wrappers that consume significantly more memory than the documented message-size limit, resulting in process termination due to out-of-memory conditions. The flaw is classified under CWE-400 (Uncontrolled Resource Consumption), CWE-770, and CWE-1050. The vulnerability affects multiple version ranges: >=1.1.0 <5.2.5, >=6.0.0 <6.2.4, >=7.0.0 <7.5.11, and >=8.0.0 <8.21.0. Fixes have been released in versions 5.2.5, 6.2.4, 7.5.11, and 8.21.0. Red Hat's advisory confirms the impact and notes that no suitable mitigation other than upgrading is currently available.
Potential Impact
Successful exploitation results in a denial of service condition by exhausting memory resources on the affected system, causing the ws process to terminate. This disrupts WebSocket communication services relying on the ws library, potentially impacting availability. There is no impact on confidentiality or integrity. The CVSS v3.1 score is 7.5 (High), reflecting a network attack vector with low complexity and no required privileges or user interaction.
Mitigation Recommendations
A fix is available in ws versions 5.2.5, 6.2.4, 7.5.11, and 8.21.0. Users should upgrade to these or later versions to remediate the vulnerability. Red Hat advisories indicate that no effective mitigation other than upgrading currently meets their criteria for ease of use, applicability, and stability. Therefore, upgrading is the recommended remediation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-22T20:18:20.365Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-48779","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:29197","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:33155","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:33160","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:33163","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:33173","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:33183","vendor":"Red Hat"}]
Threat ID: 6a31c7a50b89be6888375e3e
Added to database: 06/16/2026, 22:01:09 UTC
Last enriched: 08/16/2026, 14:31:37 UTC
Last updated: 09/15/2026, 22:11:36 UTC
Views: 168
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.