p PatchFirst

PatchFirst · Vulnerabilidades recientes

Vulnerabilidades de ws

Vulnerabilidades publicadas para ws en los últimos 30 días: 0. Incluidas en el catálogo KEV: 0.

Filtrar vulnerabilidades
Borrar filtros

Vulnerabilidades: 7

  1. CVE-2026-48779

    Alta · CVSS 7.5EPSS 1,43%Corrección disponible

    ws: Memory exhaustion DoS from tiny fragments and data chunks

    ws is an open source WebSocket client and server for Node.js. All versions from 1.1.0 up to (but not including) 5.2.5, from 6.0.0 up to 6.2.4, from 7.0.0 up to 7.5.11, and from 8.0.0 up to 8.21.0 are affected by a memory exhaustion DoS vulnerability. A peer can send a high volume of exceptionally small fragments and data chunks, with modest network traffic, to force the remote peer into allocating and holding structural wrappers that consume far more memory than the default documented message-size limit, leading to process termination due to OOM. This issue has been fixed in versions 5.2.5, 6.2.4, 7.5.11, and 8.21.0.

    • Actualiza a 5.2.5
    • Actualiza a 6.2.4
    • Actualiza a 7.5.11
    • Actualiza a 8.21.0
    Publicación Actualización
  2. CVE-2026-45736

    Media · CVSS 4.4EPSS 0,74%Corrección disponible

    ws: Uninitialized memory disclosure

    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.

    • Actualiza a 8.20.1
    Publicación Actualización
  3. CVE-2024-37890

    Alta · CVSS 7.5EPSS 1,36%Corrección disponible

    Denial of service when handling a request with many HTTP headers in ws

    ws is an open source WebSocket client and server for Node.js. A request with a number of headers exceeding theserver.maxHeadersCount threshold could be used to crash a ws server. The vulnerability was fixed in [email protected] (e55e510) and backported to [email protected] (22c2876), [email protected] (eeb76d3), and [email protected] (4abd8f6). In vulnerable versions of ws, the issue can be mitigated in the following ways: 1. Reduce the maximum allowed length of the request headers using the --max-http-header-size=size and/or the maxHeaderSize options so that no more headers than the server.maxHeadersCount limit can be sent. 2. Set server.maxHeadersCount to 0 so that no limit

    • Actualiza a 5.2.4
    • Actualiza a 6.2.3
    • Actualiza a 7.5.10
    • Actualiza a 8.17.1
    Publicación Actualización
  4. CVE-2021-32640

    Media · CVSS 5.3EPSS 2,82%Corrección disponible

    ReDoS in Sec-Websocket-Protocol header

    ws is an open source WebSocket client and server library for Node.js. A specially crafted value of the `Sec-Websocket-Protocol` header can be used to significantly slow down a ws server. The vulnerability has been fixed in [email protected] (https://github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ff). In vulnerable versions of ws, the issue can be mitigated by reducing the maximum allowed length of the request headers using the [`--max-http-header-size=size`](https://nodejs.org/api/cli.html#cli_max_http_header_size_size) and/or the [`maxHeaderSize`](https://nodejs.org/api/http.html#http_http_createserver_options_requestlistener)

    • Actualiza a 5.2.3
    • Actualiza a 6.2.2
    • Actualiza a 7.4.6
    Publicación Actualización
  5. GHSA-5v72-xg48-5rpm

    Alta · CVSS 7.5Corrección disponible

    Denial of Service in ws

    Affected versions of `ws` can crash when a specially crafted `Sec-WebSocket-Extensions` header containing `Object.prototype` property names as extension or parameter names is sent. ## Proof of concept ``` const WebSocket = require('ws'); const net = require('net'); const wss = new WebSocket.Server({ port: 3000 }, function () { const payload = 'constructor'; // or ',;constructor' const request = [ 'GET / HTTP/1.1', 'Connection: Upgrade', 'Sec-WebSocket-Key: test', 'Sec-WebSocket-Version: 8', `Sec-WebSocket-Extensions: ${payload}`, 'Upgrade: websocket', '\r\n' ].join('\r\n'); const socket = net.connect(

    • Actualiza a 1.1.5
    • Actualiza a 3.3.1
    Publicación Actualización
  6. CVE-2016-10542

    Alta · CVSS 7.5EPSS 7,42%Código de explotación públicoCorrección disponible

    CVE-2016-10542

    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.

    • Actualiza a 1.1.1
    Publicación Actualización
  7. CVE-2016-10518

    Alta · CVSS 7.5EPSS 1,98%Corrección disponible

    CVE-2016-10518

    A vulnerability was found in the ping functionality of the ws module before 1.0.0 which allowed clients to allocate memory by sending a ping frame. The ping functionality by default responds with a pong frame and the previously given payload of the ping frame. This is exactly what you expect, but internally ws always transforms all data that we need to send to a Buffer instance and that is where the vulnerability existed. ws didn't do any checks for the type of data it was sending. With buffers in node when you allocate it when a number instead of a string it will allocate the amount of bytes.

    • Actualiza a 1.0.1
    Publicación Actualización

Comprueba tu servidor

Compara tu pila y las versiones instaladas con las bases actuales de vulnerabilidades.

Comprueba tu servidor →