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 package | Versions | Reported by |
|---|---|---|
| websockets ws | >= 8.0.0, < 8.20.1 | CVE List |
| cryostat/cryostat-openshift-console-plugin-rhel9 | Not specified Not affected: from 4.2.0-13 before * | CVE List |
| ws | Not specified | CVE List |
| rh-podman-desktop | Not specified Not affected: from 0:1.1.2-1.el10_2 before * | CVE List |
| ansible-automation-platform-26/gateway-rhel9 | Not specified Not affected: from 1782761510 before * | CVE List |
| rhdh/rhdh-hub-rhel9 | Not specified Not affected: from 1783448184 before *, from 1782761244 before * | CVE List |
| discovery/discovery-ui-rhel9 | Not specified Not affected: from 1782166952 before * | CVE List |
| dotnet10-0-main | Not specified Not affected: from 10.0.109-1.hum1 before * | CVE List |
| dotnet8-0-main | Not specified Not affected: from 8.0.128-1.hum1 before * | CVE List |
| dotnet9-0-main | Not specified Not affected: from 9.0.118-1.hum1 before * | CVE List |
| yarnpkg-main | Not specified Not affected: from 1.22.22-18.1.hum1 before * | CVE List |
| rhmtc/openshift-migration-ui-rhel8 | Not specified Not affected: from 1783690532 before * | CVE List |
| rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9 | Not specified Not affected: from 1787801527 before *, from 1787121387 before * | CVE List |
| rhoai/odh-dashboard-rhel9 | Not specified Not affected: from 1787347991 before * | CVE List |
| rhoai/odh-mod-arch-automl-rhel9 | Not specified Not affected: from 1787250508 before * | CVE List |
| rhoai/odh-mod-arch-autorag-rhel9 | Not specified Not affected: from 1787251550 before * | CVE List |
| rhoai/odh-mod-arch-gen-ai-rhel9 | Not specified Not affected: from 1786611759 before * | CVE List |
| rhoai/odh-mod-arch-maas-rhel9 | Not specified Not affected: from 1787251250 before * | CVE List |
| rhoai/odh-mod-arch-model-registry-rhel9 | Not specified Not affected: from 1787250617 before * | CVE List |
| openshift4/ose-monitoring-plugin-rhel9 | Not specified Not affected: from 1784670101 before *, from 1784730857 before *, from 1784127553 before *, from 1784144936 before * | CVE List |
| openshift4/ose-agent-installer-ui-rhel9 | Not specified Not affected: from 1784724699 before *, from 1784713741 before *, from 1785230147 before * | CVE List |
| odf4/cephcsi-rhel9 | Not specified Not affected: from 1786705347 before *, from 1786701839 before *, from 1786627460 before *, from 1787057250 before * | CVE List |
| odf4/cephcsi-rhel9-operator | Not specified Not affected: from 1786706101 before *, from 1786701555 before *, from 1786626399 before *, from 1787057964 before * | CVE List |
| odf4/mcg-core-rhel9 | Not specified Not affected: from 1786705558 before *, from 1786702052 before *, from 1786628235 before *, from 1787058450 before * | CVE List |
| odf4/mcg-rhel9-operator | Not specified Not affected: from 1786705646 before *, from 1786702559 before *, from 1786627106 before *, from 1787057989 before * | CVE List |
| odf4/ocs-client-console-rhel9 | Not specified Not affected: from 1786706138 before *, from 1786702713 before *, from 1786629761 before *, from 1787059853 before * | CVE List |
| odf4/ocs-client-rhel9-operator | Not specified Not affected: from 1786705741 before *, from 1786702264 before *, from 1786627559 before *, from 1787057849 before * | CVE List |
| odf4/ocs-metrics-exporter-rhel9 | Not specified Not affected: from 1786705777 before *, from 1786702448 before *, from 1786687918 before *, from 1787060257 before * | CVE List |
| odf4/ocs-rhel9-operator | Not specified Not affected: from 1786705802 before *, from 1786702276 before *, from 1786629478 before *, from 1787058278 before * | CVE List |
| odf4/odf-cli-rhel9 | Not specified Not affected: from 1786705938 before *, from 1786702440 before *, from 1786628142 before *, from 1787058706 before * | CVE List |
| odf4/odf-console-rhel9 | Not specified Not affected: from 1786706577 before *, from 1786703071 before *, from 1786628053 before *, from 1787059072 before * | CVE List |
| odf4/odf-cosi-sidecar-rhel9 | Not specified Not affected: from 1786706125 before *, from 1786702563 before *, from 1786627382 before *, from 1787058807 before * | CVE List |
| odf4/odf-csi-addons-rhel9-operator | Not specified Not affected: from 1786706177 before *, from 1786702636 before *, from 1786627430 before *, from 1787058588 before * | CVE List |
| odf4/odf-csi-addons-sidecar-rhel9 | Not specified Not affected: from 1786706188 before *, from 1786702623 before *, from 1786629076 before *, from 1787058970 before * | CVE List |
| odf4/odf-multicluster-console-rhel9 | Not specified Not affected: from 1786706679 before *, from 1786703137 before *, from 1786688215 before *, from 1787059621 before * | CVE List |
| odf4/odf-multicluster-rhel9-operator | Not specified Not affected: from 1786706357 before *, from 1786702716 before *, from 1786628340 before *, from 1787059386 before * | CVE List |
| odf4/odf-must-gather-rhel9 | Not specified Not affected: from 1786706612 before *, from 1786702872 before *, from 1786628623 before *, from 1787060080 before * | CVE List |
| odf4/odf-rhel9-operator | Not specified Not affected: from 1786706644 before *, from 1786702949 before *, from 1786632256 before *, from 1787060105 before * | CVE List |
| odf4/odr-rhel9-operator | Not specified Not affected: from 1786706659 before *, from 1786702917 before *, from 1786628935 before *, from 1787059493 before * | CVE List |
| odf4/rook-ceph-rhel9-operator | Not specified Not affected: from 1786706880 before *, from 1786703143 before *, from 1786629548 before *, from 1787061554 before * | CVE List |
| odf4/odf-cloudnative-pg-rhel9-operator | Not specified Not affected: from 1786702315 before *, from 1786631508 before *, from 1787058403 before * | CVE List |
| odf4/odf-external-snapshotter-rhel9-operator | Not specified Not affected: from 1786627469 before *, from 1787059616 before * | CVE List |
| odf4/odf-external-snapshotter-sidecar-rhel9 | Not specified Not affected: from 1786644072 before *, from 1787061098 before * | CVE List |
| odf4/devicefinder-rhel9 | Not specified Not affected: from 1787057603 before * | CVE List |
| odf4/odf-blackbox-exporter-rhel9 | Not specified Not affected: from 1787058658 before * | CVE List |
| odf4/odf-drbd-rhel9 | Not specified Not affected: from 1787059538 before * | CVE List |
| odf4/odf-lightspeed-rag-content-rhel9 | Not specified Not affected: from 1787059085 before * | CVE List |
| odf4/odr-volsync-plugin-mover-rhel9 | Not specified Not affected: from 1787060201 before * | CVE List |
| odf4/odr-volsync-plugin-rhel9-operator | Not specified Not affected: from 1787060274 before * | CVE List |
| devspaces/code-rhel9 | Not specified Not affected: from 1782498475 before * | CVE List |
| devspaces/dashboard-rhel9 | Not specified Not affected: from 1782498792 before * | CVE List |
| rhtas/rekor-search-ui-rhel9 | Not specified Not affected: from 1783327185 before * | CVE List |
| cryostat-openshift-console-plugin-npm | Not specified | CVE List |
| grafana-infinity-datasource-npm | Not specified | CVE List |
| gatekeeper/gatekeeper-rhel9 | Not specified | CVE List |
| workload-availability/node-healthcheck-must-gather-rhel9 | Not specified | CVE List |
| workload-availability/node-healthcheck-operator-bundle | Not specified | CVE List |
| workload-availability/node-healthcheck-rhel9-operator | Not specified | CVE List |
| openshift-lightspeed/lightspeed-console-plugin-419-rhel9 | Not specified | CVE List |
| openshift-lightspeed/lightspeed-console-plugin-pf5-rhel9 | Not specified | CVE List |
| openshift-lightspeed/lightspeed-console-plugin-rhel9 | Not specified | CVE List |
| openshift-pipelines/pipelines-console-plugin-pf5-rhel9 | Not specified | CVE List |
| openshift-pipelines/pipelines-console-plugin-rhel8 | Not specified | CVE List |
| openshift-pipelines/pipelines-console-plugin-rhel9 | Not specified | CVE List |
| openshift-pipelines/pipelines-hub-ui-rhel8 | Not specified | CVE List |
| openshift-pipelines/pipelines-hub-ui-rhel9 | Not specified | CVE List |
| openshift-service-mesh/kiali-ossmc-rhel8 | Not specified | CVE List |
| openshift-service-mesh/kiali-rhel8 | Not specified | CVE List |
| openshift-service-mesh/kiali-operator-bundle | Not specified | CVE List |
| openshift-service-mesh/kiali-ossmc-rhel9 | Not specified | CVE List |
| openshift-service-mesh/kiali-rhel9 | Not specified | CVE List |
| openshift-service-mesh/kiali-rhel9-operator | Not specified | CVE List |
| ansible-automation-platform-24/lightspeed-rhel8 | Not specified | CVE List |
| ansible-automation-platform-25/lightspeed-rhel8 | Not specified | CVE List |
| ansible-automation-platform-26/lightspeed-rhel9 | Not specified | CVE List |
| ansible-automation-platform-27/lightspeed-rhel9 | Not specified | CVE List |
| automation-controller | Not specified | CVE List |
| automation-eda-controller | Not specified | CVE List |
| rh-podman-desktop.git | Not specified | CVE List |
| rhdesktop/rh-podman-desktop-ext-bootc-rhel10 | Not specified | CVE List |
| rhdesktop/rh-podman-desktop-ext-rhel-rhel10 | Not specified | CVE List |
| rhdesktop/rh-podman-desktop-ext-sandbox-rhel10 | Not specified | CVE List |
| rhcl-1/rhcl-console-plugin-rhel9 | Not specified | CVE List |
| dotnet8.0 | Not specified | CVE List |
| dotnet9.0 | Not specified | CVE List |
| pcs | Not specified | CVE List |
| rust | Not specified | CVE List |
| dotnet5.0-build-reference-packages | Not specified | CVE List |
| grafana | Not specified | CVE List |
| grafana-pcp | Not specified | CVE List |
| mozjs60 | Not specified | CVE List |
| thunderbird | Not specified | CVE List |
| ceph | Not specified | CVE List |
| gjs | Not specified | CVE List |
| rhelai3/bootc-cuda-rhel9 | Not specified | CVE List |
| rhelai3/bootc-gaudi-rhel9 | Not specified | CVE List |
| rhelai3/bootc-rocm-rhel9 | Not specified | CVE List |
| rhelai3/disk-image-cuda-rhel9 | Not specified | CVE List |
| thrift | Not specified | CVE List |
| ruff | Not specified | CVE List |
| rhoai/odh-mlflow-rhel9 | Not specified | CVE List |
| rhoai/odh-mod-arch-eval-hub-rhel9 | Not specified | CVE List |
| rhoai/odh-mod-arch-mlflow-rhel9 | Not specified | CVE List |
| openshift4/ose-console | Not specified | CVE List |
| openshift4/ose-console-rhel9 | Not specified | CVE List |
| container-native-virtualization/kubevirt-console-plugin | Not specified | CVE List |
| container-native-virtualization/kubevirt-console-plugin-rhel9 | Not specified | CVE List |
| quay/quay-rhel8 | Not specified | CVE List |
| satellite/iop-vulnerability-frontend-rhel9 | Not specified | CVE List |
| ansible-automation-platform/automation-portal | Not specified | CVE List |
| ansible-automation-platform/bootc-automation-portal-rhel9 | Not specified | CVE List |
| ws (npm) | from 8.0.0 before 8.20.1 | GitHub Advisory Database |
| ws_project ws | from 8.0.0 before 8.20.1 | NVD |
All scores
| GitHub_M | 4.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N |
| redhat-SADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 4.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-45736 changed 2026-09-11 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-58qx-3vcg-4xpx changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-45736 changed 2026-10-26 | Public domain |