Skip to content
OpenAdvisories
High Public exploit CVE-2016-10542 EUVD-2019-0237GHSA-6663-c963-2gqg

DoS due to excessively large websocket message in ws

Published May 31, 2018 · Updated Sep 17, 2024 · Assigned by hackerone

Description

ws is a "simple to use, blazing fast and thoroughly tested websocket client, server and console for node.js, up-to-date against RFC-6455". By sending an overly long websocket payload to a `ws` server, it is possible to crash the node process. This affects ws 1.1.0 and earlier.

Affected products

VendorProductAffectedFixed
HackerOne ws node module <=1.1.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-ws 1.1.0+ds1.e6ddaae4-5 —
Debian 13 node-ws 1.1.0+ds1.e6ddaae4-5 —
Debian 12 node-ws 1.1.0+ds1.e6ddaae4-5 —
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS node-ws No fix yet —
Ubuntu 16.04 LTS node-ws No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm ws < 1.1.1 1.1.1 GHSA-6663-c963-2gqg

References