npm package
ws 6.1.2 vulnerabilities, and the version that fixes all of them
ws 6.1.2 has 3 known vulnerabilities (2 rated high or critical); 6.2.4 fixes all of them.
npm (opens in a new tab) describes it as “Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js”
- Known vulnerabilities
- 3
- 2 rated high or critical
- Released
- Nov 17, 2018
- Latest is 8.22.0
- Downloads last week
- 31K
- Under 1% of ws downloads
- Licence
- MIT
- Pulls in
- 1 package
- Resolved by deps.dev
What to upgrade to
6.2.4 is the closest release with no known vulnerabilities.
6.2.4Upgrade to this
Fixes all 3 known vulnerabilities. Released May 22, 2026.
No known vulnerabilitiesNewest 6.x release. Released Jul 17, 2026.
No known vulnerabilitiesLatest release. Released Sep 26, 2026.
No known vulnerabilities
6.2.4 came out on May 22, 2026. A coding agent trained before then doesn’t know it exists, so it may suggest an older release. AI knowledge cutoff dates
Hand the fix to your coding agent
One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.
Findings
- CriticalVulnerability
3 known vulnerabilities in ws 6.1.2
EPSS: top 14%2 rated high or critical. Most serious: CVE-2024-37890, ws affected by a DoS when handling a request with many HTTP headers. Upgrading to 6.2.4 fixes all of them.
- WarningOutdated
ws 6.1.2 is 2 major versions behind
Latest release is 8.22.0.
Every advisory for ws 6.1.2
Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.
WarningCVE-2021-32640 on OSV.dev (opens in a new tab)GHSA-6fc8-4gx4-v693EPSS: top 14%
ReDoS in Sec-Websocket-Protocol header
Fixed in 6.2.2. Published May 28, 2021.
CriticalCVE-2024-37890 on OSV.dev (opens in a new tab)GHSA-3h5v-q93c-6h6qEPSS: top 29%
ws affected by a DoS when handling a request with many HTTP headers
Fixed in 6.2.3. Published Jun 17, 2024.
CriticalCVE-2026-48779 on OSV.dev (opens in a new tab)GHSA-96hv-2xvq-fx4pEPSS: top 41%
ws: Memory exhaustion DoS from tiny fragments and data chunks
Fixed in 6.2.4. Published Jun 15, 2026.
Who is still on a vulnerable ws
33% of last week’s 287.7M ws downloads went to versions with known vulnerabilities.
From npm’s per-version download counts for the last 7 days, each version checked against OSV.dev. The versions checked cover over 99% of downloads.
Is ws the only one?
Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task. Free, no sign-up.
How this page is checked
StackPrism asks OSV.dev which advisories affect exactly ws 6.1.2, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.
Last checked against npm, OSV.dev, deps.dev, CISA KEV and FIRST EPSS.