Skip to main content
EPSS 0.7%top 47%

CVE-2026-45736: CWE-908: Use of Uninitialized Resource in websockets ws

0
Medium
VulnerabilityCVE-2026-45736cvecve-2026-45736cwe-908
Published: 05/15/2026 (05/15/2026, 14:53:57 UTC)
Source: CVE Database V5
Vendor/Project: websockets
Product: ws

Description

ws is an open source WebSocket client and server for Node.js. Prior to 8.20.1, the websocket.close() implementation is vulnerable to uninitialized memory disclosure when a TypedArray is passed as the reason argument. This vulnerability is fixed in 8.20.1.

CVSS v3.1

Score 4.4medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N

Affected software

websockets

ws

Affected versions
>=8.0.0 <8.20.1
ws
pkg:npm/ws
Affected versions
<8.20.1

Run 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

AILast updated: 08/15/2026, 14:23:40 UTC

Technical Analysis

CVE-2026-45736 is a vulnerability in the ws WebSocket client and server library for Node.js. Specifically, the websocket.close() implementation is vulnerable to uninitialized memory disclosure when a TypedArray is passed as the reason argument. This can result in sensitive information leakage from uninitialized memory areas. The issue is tracked under CWE-908 (Use of Uninitialized Resource) and CWE-824 (Access of Uninitialized Pointer). The vulnerability affects all versions prior to 8.20.1 and has been fixed in 8.20.1. The CVSS v3 base score is 7.5 (High) according to Red Hat's assessment, indicating a network attack vector with low complexity and no required privileges or user interaction, resulting in high confidentiality impact but no integrity or availability impact. No known exploits in the wild have been reported. Red Hat has released advisories and errata addressing this vulnerability.

Potential Impact

An attacker who can cause the websocket.close() function to be called with a TypedArray reason argument may be able to read sensitive information from uninitialized memory. This confidentiality breach does not affect integrity or availability. The vulnerability requires network access but no privileges or user interaction. There are no known active exploits in the wild at this time.

Mitigation Recommendations

A fix is available in ws version 8.20.1. Users and vendors should upgrade to version 8.20.1 or later to remediate this vulnerability. Red Hat has released security advisories and errata that include this fix for affected products. No additional mitigations are specified or required beyond applying the official update.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-05-13T06:54:34.219Z
Cvss Version
3.1
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-45736","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:29197","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:26638","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:26994","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:27171","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7655","vendor":"Red Hat"}]

Threat ID: 6a073a04ec166c07b05c5b44

Added to database: 05/15/2026, 15:21:40 UTC

Last enriched: 08/15/2026, 14:23:40 UTC

Last updated: 09/11/2026, 22:23:26 UTC

Views: 1036

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses