CVE-2026-45736
JSON

4.4medium

ws: Uninitialized memory disclosure

Severity
4.4medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.74% (higher than 56% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-58qx-3vcg-4xpx

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.

Affected

Product or packageVersionsReported by
websockets ws>= 8.0.0, < 8.20.1CVE List
cryostat/cryostat-openshift-console-plugin-rhel9Not specified
Not affected: from 4.2.0-13 before *
CVE List
wsNot specifiedCVE List
rh-podman-desktopNot specified
Not affected: from 0:1.1.2-1.el10_2 before *
CVE List
ansible-automation-platform-26/gateway-rhel9Not specified
Not affected: from 1782761510 before *
CVE List
rhdh/rhdh-hub-rhel9Not specified
Not affected: from 1783448184 before *, from 1782761244 before *
CVE List
discovery/discovery-ui-rhel9Not specified
Not affected: from 1782166952 before *
CVE List
dotnet10-0-mainNot specified
Not affected: from 10.0.109-1.hum1 before *
CVE List
dotnet8-0-mainNot specified
Not affected: from 8.0.128-1.hum1 before *
CVE List
dotnet9-0-mainNot specified
Not affected: from 9.0.118-1.hum1 before *
CVE List
yarnpkg-mainNot specified
Not affected: from 1.22.22-18.1.hum1 before *
CVE List
rhmtc/openshift-migration-ui-rhel8Not specified
Not affected: from 1783690532 before *
CVE List

All scores

GitHub_M4.4medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N
redhat-SADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub4.4medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-824CWE-908

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

The websocket.close() implementation is vulnerable to uninitialized memory disclosure when a TypedArray is passed as the reason argument.

Proof of concept
import { deepStrictEqual } from 'node:assert';
import { WebSocket, WebSocketServer } from 'ws';

const wss = new WebSocketServer(
  { port: 0, skipUTF8Validation: true },
  function () {
    const { port } = wss.address();
    const ws = new WebSocket(`ws://localhost:${port}`, {
      skipUTF8Validation: true
    });

    ws.on('close', function (code, reason) {
      deepStrictEqual(reason, Buffer.alloc(80));
    });
  }
);

wss.on('connection', function (ws) {
  ws.close(1000, new Float32Array(20));
});
Patches

The vulnerability was fixed in ws@8.20.1 (https://github.com/websockets/ws/commit/c0327ec15a54d701eb6ccefaa8bef328cfc03086).

Credits

Credit for the private and responsible disclosure of this issue goes to Nikita Skovoroda.

Remarks

Although the calculated CVSS severity is medium, the actual severity is believed to be low, as the flaw is only exploitable through misuse that is unlikely in practice.

Resources
NVD (es)

ws es un cliente y servidor WebSocket de código abierto para Node.js. Antes de la versión 8.20.1, la implementación de websocket.close() es vulnerable a la divulgación de memoria no inicializada cuando se pasa un TypedArray como argumento ’reason’. Esta vulnerabilidad está corregida en la versión 8.20.1.

References

https://github.com/websockets/ws/security/advisories/GHSA-58qx-3vcg-4xpxexploit, patch, vendor-advisory, web
https://github.com/websockets/ws/commit/c0327ec15a54d701eb6ccefaa8bef328cfc03086patch, web
https://access.redhat.com/security/cve/CVE-2026-45736vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2477914issue-tracking
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-45736.json
https://access.redhat.com/errata/RHSA-2026:48151vendor-advisory
https://access.redhat.com/errata/RHSA-2026:57590vendor-advisory
https://access.redhat.com/errata/RHSA-2026:66545vendor-advisory
https://access.redhat.com/errata/RHSA-2026:66488vendor-advisory
https://access.redhat.com/errata/RHSA-2026:34374vendor-advisory
https://access.redhat.com/errata/RHSA-2026:36754vendor-advisory
https://access.redhat.com/errata/RHSA-2026:33574vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-45736 changed 2026-09-11CVE Terms of Use
GitHub Advisory DatabaseGHSA-58qx-3vcg-4xpx changed 2026-09-10CC-BY-4.0
NVDCVE-2026-45736 changed 2026-10-26Public domain