ws: Use of Uninitialized Resource
CVE-2026-45736 is a high-severity use of uninitialized resource vulnerability in ws from Websockets, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected ws versions: >= 8.0.0, < 8.20.1. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 0.74% chance of exploitation within 30 days, higher than 55% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Check which version of ws you run against the affected versions below, and install the vendor's latest release.
- Read the advisory on github.com for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Websockets | ws | >= 8.0.0, < 8.20.1 | Not stated |
| Red Hat | Cryostat 4 on RHEL 9 | Not specified in the record | Not stated |
| Red Hat | Red Hat AMQ Broker 7.13.6 | Not specified in the record | Not stated |
| Red Hat | Red Hat AMQ Broker 7.14.1 | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 10 | Not specified in the record | Not stated |
| Red Hat | Red Hat Ansible Automation Platform 2.6 | Not specified in the record | Not stated |
| Red Hat | Red Hat Developer Hub 1.10 | Not specified in the record | Not stated |
| Red Hat | Red Hat Developer Hub 1.9 | Not specified in the record | Not stated |
| Red Hat | Red Hat Discovery 2 | Not specified in the record | Not stated |
| Red Hat | Red Hat Hardened Images | Not specified in the record | Not stated |
| Red Hat | Red Hat Migration Toolkit 1.8 | Not specified in the record | Not stated |
| Red Hat | Red Hat OpenShift AI 2.25 | Not specified in the record | Not stated |
| Red Hat | Red Hat OpenShift AI 3.4 | Not specified in the record | Not stated |
| Red Hat | Red Hat OpenShift Container Platform 4.19 | Not specified in the record | Not stated |
| Red Hat | Red Hat OpenShift Container Platform 4.20 | Not specified in the record | Not stated |
| Red Hat | Red Hat OpenShift Container Platform 4.21 | Not specified in the record | Not stated |
| Red Hat | Red Hat OpenShift Container Platform 4.22 | Not specified in the record | Not stated |
| Red Hat | Red Hat Openshift Data Foundation 4.18 | Not specified in the record | Not stated |
| Red Hat | Red Hat Openshift Data Foundation 4.19 | Not specified in the record | Not stated |
| Red Hat | Red Hat Openshift Data Foundation 4.20 | Not specified in the record | Not stated |
| Red Hat | Red Hat Openshift Data Foundation 4.22 | Not specified in the record | Not stated |
| Red Hat | Red Hat OpenShift Dev Spaces 3.29 | Not specified in the record | Not stated |
| Red Hat | Red Hat Trusted Artifact Signer 1.4 | Not specified in the record | Not stated |
| Red Hat | Cryostat 4 | Not specified in the record | Not stated |
| Red Hat | Gatekeeper 3 | Not specified in the record | Not stated |
Version data comes from the organisation that assigned the CVE; 25 further products are omitted here. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- NoneNothing can be modified.
- Availability
- NoneAvailability is not affected.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 4.4 | Medium | CNA (github.com) |
| CVSS 3.1 | 7.5 | High | NVD |
| CVSS 3.1 | 7.5 | High | CNA |
Official 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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Use of Uninitialized Resource
The product uses or accesses a resource that has not been initialized.
How developers prevent this class of flaw
- Explicitly initialize the resource before use. If this is performed through an API function or standard procedure, follow all required steps.
- Pay close attention to complex conditionals that affect initialization, since some branches might not perform the initialization.
- Avoid race conditions (CWE-362) during initialization routines.
More Use of Uninitialized Resource vulnerabilities (CWE-908)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: poc, automatable: no, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Advisories
Patches and release notes
Other references
- access.redhat.com/errata/RHSA-2026:26638
- access.redhat.com/errata/RHSA-2026:26994
- access.redhat.com/errata/RHSA-2026:27171
- access.redhat.com/errata/RHSA-2026:29197
- access.redhat.com/errata/RHSA-2026:33574
- access.redhat.com/errata/RHSA-2026:34374
- access.redhat.com/errata/RHSA-2026:36754
- access.redhat.com/errata/RHSA-2026:36820
- access.redhat.com/errata/RHSA-2026:37272
- access.redhat.com/errata/RHSA-2026:40768
- access.redhat.com/errata/RHSA-2026:40792
- access.redhat.com/errata/RHSA-2026:41928
- access.redhat.com/errata/RHSA-2026:44235
- access.redhat.com/errata/RHSA-2026:44263
- access.redhat.com/errata/RHSA-2026:44267
Other vulnerabilities in ws
- 7.5 High severity
- 7.5 High severity
Recent Use of Uninitialized Resource vulnerabilities
- 7.8 High severity
- 7.5 High severity
- 8.3 High severity
- 8.6 High severity
- 7.8 High severity
- 7.1 High severity
Spotted an error? Tell us.