Skip to content

Update dependency ws to v8.21.0#116

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/ws-8.x
Jun 2, 2026
Merged

Update dependency ws to v8.21.0#116
renovate[bot] merged 1 commit into
mainfrom
renovate/ws-8.x

Conversation

@renovate
Copy link
Copy Markdown

@renovate renovate Bot commented Jun 2, 2026

This PR contains the following updates:

Package Change Age Confidence
ws 8.20.08.21.0 age confidence

Release Notes

websockets/ws (ws)

v8.21.0

Compare Source

v8.20.1

Compare Source

Bug fixes

  • Fixed an uninitialized memory disclosure issue in websocket.close()
    (c0327ec).

Providing a TypedArray (e.g. Float32Array) as the reason argument for
websocket.close(), rather than the supported string or Buffer types, caused
uninitialized memory to be disclosed to the remote peer.

import { deepStrictEqual } from 'node:assert';
import { WebSocket, WebSocketServer } from 'ws';

const wss = new WebSocketServer(
  { port: 0, skipUTF8Validation: true },
  function () {
    const { port } = wss.address();
    const ws = new WebSocket(`ws://localhost:${port}`, {
      skipUTF8Validation: true
    });

    ws.on('close', function (code, reason) {
      deepStrictEqual(reason, Buffer.alloc(80));
    });
  }
);

wss.on('connection', function (ws) {
  ws.close(1000, new Float32Array(20));
});

The issue was privately reported by Nikita Skovoroda.


Configuration

📅 Schedule: (in timezone Europe/Paris)

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

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, 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 enabled auto-merge (squash) June 2, 2026 01:09
@renovate renovate Bot merged commit de4a229 into main Jun 2, 2026
1 check passed
@renovate renovate Bot deleted the renovate/ws-8.x branch June 2, 2026 01:09
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