npmWorst: High7 advisories

ws: known vulnerabilities

ws has 7 reviewed security advisories in the GitHub Advisory Database — 4 high, 2 moderate, 1 low. The most recent was published 2026-06-17. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the ws versions running across your servers, containers and images, and ranks what to patch first.

How to fix ws

Upgrade ws to a release at or above the fixed version shown for each advisory below. For npm:

npm install ws@8.21.0 (or run npm audit fix)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (7)

ws: Memory exhaustion DoS from tiny fragments and data chunks High 7.5 CWE-1050 CWE-400 CWE-770 — Affected: from 8.0.0 up to 8.21.0. Fixed in 8.21.0. Published 2026-06-17. GHSA-96hv-2xvq-fx4p · CVE-2026-48779
ws: Uninitialized memory disclosure Moderate 4.4 CWE-908 — Affected: from 8.0.0 up to 8.20.1. Fixed in 8.20.1. Published 2026-05-15. GHSA-58qx-3vcg-4xpx · CVE-2026-45736
ws affected by a DoS when handling a request with many HTTP headers High 7.5 CWE-476 — Affected: from 8.0.0 up to 8.17.1. Fixed in 8.17.1. Published 2024-06-17. GHSA-3h5v-q93c-6h6q · CVE-2024-37890
ReDoS in Sec-Websocket-Protocol header Moderate 5.3 CWE-345 CWE-400 — Affected: from 5.0.0 up to 5.2.3. Fixed in 5.2.3. Published 2021-05-25. GHSA-6fc8-4gx4-v693 · CVE-2021-32640
Denial of Service in ws High 7.5 CWE-400 — Affected: from 2.0.0 up to 3.3.1. Fixed in 3.3.1. Published 2019-06-04. GHSA-5v72-xg48-5rpm
DoS due to excessively large websocket message in ws High CWE-400 — Affected: before 1.1.1. Fixed in 1.1.1. Published 2019-02-18. GHSA-6663-c963-2gqg · CVE-2016-10542

Find ws across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.