Skip to content

chore(deps): bump ws from 8.18.0 to 8.20.1#4740

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

chore(deps): bump ws from 8.18.0 to 8.20.1#4740
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/ws-8.20.1

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 19, 2026

Bumps ws from 8.18.0 to 8.20.1.

Release notes

Sourced from ws's releases.

8.20.1

Bug fixes

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

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.

8.20.0

Features

  • Added exports for the PerMessageDeflate class and utilities for the Sec-WebSocket-Extensions and Sec-WebSocket-Protocol headers (d3503c1f).

8.19.0

Features

  • Added the closeTimeout option (#2308).

Bug fixes

  • Handled a forthcoming breaking change in Node.js core (19984854).

... (truncated)

Commits
  • 5d9b316 [dist] 8.20.1
  • c0327ec [security] Fix uninitialized memory disclosure in websocket.close()
  • ce2a3d6 [ci] Test on node 26
  • 58e45b8 [ci] Do not test on node 25
  • 5f26c24 [ci] Run the lint step on node 24
  • 8439255 [dist] 8.20.0
  • d3503c1 [minor] Export the PerMessageDeflate class and header utils
  • 3ee5349 [api] Convert the isServer and maxPayload parameters to options
  • 91707b4 [doc] Add missing space
  • 8b55319 [pkg] Update eslint to version 10.0.1
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels May 19, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 19, 2026

⚠️ No Changeset found

Latest commit: 13c96ea

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify
Copy link
Copy Markdown

netlify Bot commented May 19, 2026

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit 13c96ea
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/6a0ef277459b1400089071d7
😎 Deploy Preview https://deploy-preview-4740--module-federation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 19, 2026

Open in StackBlitz

@module-federation/devtools

pnpm add https://pkg.pr.new/@module-federation/devtools@13c96ea

@module-federation/cli

pnpm add https://pkg.pr.new/@module-federation/cli@13c96ea

create-module-federation

pnpm add https://pkg.pr.new/create-module-federation@13c96ea

@module-federation/dts-plugin

pnpm add https://pkg.pr.new/@module-federation/dts-plugin@13c96ea

@module-federation/enhanced

pnpm add https://pkg.pr.new/@module-federation/enhanced@13c96ea

@module-federation/error-codes

pnpm add https://pkg.pr.new/@module-federation/error-codes@13c96ea

@module-federation/esbuild

pnpm add https://pkg.pr.new/@module-federation/esbuild@13c96ea

@module-federation/managers

pnpm add https://pkg.pr.new/@module-federation/managers@13c96ea

@module-federation/manifest

pnpm add https://pkg.pr.new/@module-federation/manifest@13c96ea

@module-federation/metro

pnpm add https://pkg.pr.new/@module-federation/metro@13c96ea

@module-federation/metro-plugin-rnc-cli

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rnc-cli@13c96ea

@module-federation/metro-plugin-rnef

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rnef@13c96ea

@module-federation/metro-plugin-rock

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rock@13c96ea

@module-federation/modern-js

pnpm add https://pkg.pr.new/@module-federation/modern-js@13c96ea

@module-federation/modern-js-v3

pnpm add https://pkg.pr.new/@module-federation/modern-js-v3@13c96ea

@module-federation/native-federation-tests

pnpm add https://pkg.pr.new/@module-federation/native-federation-tests@13c96ea

@module-federation/native-federation-typescript

pnpm add https://pkg.pr.new/@module-federation/native-federation-typescript@13c96ea

@module-federation/nextjs-mf

pnpm add https://pkg.pr.new/@module-federation/nextjs-mf@13c96ea

@module-federation/node

pnpm add https://pkg.pr.new/@module-federation/node@13c96ea

@module-federation/observability-plugin

pnpm add https://pkg.pr.new/@module-federation/observability-plugin@13c96ea

@module-federation/retry-plugin

pnpm add https://pkg.pr.new/@module-federation/retry-plugin@13c96ea

@module-federation/rsbuild-plugin

pnpm add https://pkg.pr.new/@module-federation/rsbuild-plugin@13c96ea

@module-federation/rspack

pnpm add https://pkg.pr.new/@module-federation/rspack@13c96ea

@module-federation/rspress-plugin

pnpm add https://pkg.pr.new/@module-federation/rspress-plugin@13c96ea

@module-federation/runtime

pnpm add https://pkg.pr.new/@module-federation/runtime@13c96ea

@module-federation/runtime-core

pnpm add https://pkg.pr.new/@module-federation/runtime-core@13c96ea

@module-federation/runtime-tools

pnpm add https://pkg.pr.new/@module-federation/runtime-tools@13c96ea

@module-federation/sdk

pnpm add https://pkg.pr.new/@module-federation/sdk@13c96ea

@module-federation/storybook-addon

pnpm add https://pkg.pr.new/@module-federation/storybook-addon@13c96ea

@module-federation/third-party-dts-extractor

pnpm add https://pkg.pr.new/@module-federation/third-party-dts-extractor@13c96ea

@module-federation/treeshake-frontend

pnpm add https://pkg.pr.new/@module-federation/treeshake-frontend@13c96ea

@module-federation/treeshake-server

pnpm add https://pkg.pr.new/@module-federation/treeshake-server@13c96ea

@module-federation/typescript

pnpm add https://pkg.pr.new/@module-federation/typescript@13c96ea

@module-federation/utilities

pnpm add https://pkg.pr.new/@module-federation/utilities@13c96ea

@module-federation/webpack-bundler-runtime

pnpm add https://pkg.pr.new/@module-federation/webpack-bundler-runtime@13c96ea

@module-federation/bridge-react

pnpm add https://pkg.pr.new/@module-federation/bridge-react@13c96ea

@module-federation/bridge-react-webpack-plugin

pnpm add https://pkg.pr.new/@module-federation/bridge-react-webpack-plugin@13c96ea

@module-federation/bridge-shared

pnpm add https://pkg.pr.new/@module-federation/bridge-shared@13c96ea

@module-federation/bridge-vue3

pnpm add https://pkg.pr.new/@module-federation/bridge-vue3@13c96ea

@module-federation/inject-external-runtime-core-plugin

pnpm add https://pkg.pr.new/@module-federation/inject-external-runtime-core-plugin@13c96ea

commit: 13c96ea

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 19, 2026

Bundle Size Report

12 package(s) changed, 29 unchanged.

Package dist + ESM entry

Package Total dist (raw) Delta ESM gzip Delta
@module-federation/cli 26.3 kB no change 786 B no change
@module-federation/core 39.1 kB no change 173 B no change
@module-federation/devtools 664.0 kB no change 4.0 kB no change
@module-federation/enhanced 807.9 kB no change 672 B no change
@module-federation/managers 69.8 kB no change 334 B no change
@module-federation/manifest 136.1 kB no change 182 B no change
@module-federation/metro-plugin-rnc-cli 0 B no change 314 B no change
@module-federation/node 193.4 kB no change 217 B no change
@module-federation/runtime-core 287.4 kB +8 B (+0.0%) 477 B no change
@module-federation/runtime-tools 7.7 kB -65 B (-0.8%) 142 B no change
@module-federation/storybook-addon 77.9 kB no change 100 B no change
@module-federation/utilities 110.6 kB no change 328 B no change

Bundle targets

Package Web bundle (gzip) Delta Node bundle (gzip) Delta
@module-federation/cli 2.3 kB -31 B (-1.3%) 2.3 kB -31 B (-1.3%)
@module-federation/core 1.1 kB -32 B (-2.9%) 1.0 kB -31 B (-2.9%)
@module-federation/devtools 30.2 kB -33 B (-0.1%) 30.2 kB -33 B (-0.1%)
@module-federation/enhanced 2.6 kB -44 B (-1.6%) 2.6 kB -44 B (-1.6%)
@module-federation/managers 2.4 kB -27 B (-1.1%) 2.4 kB -27 B (-1.1%)
@module-federation/manifest 6.1 kB -41 B (-0.7%) 6.1 kB -41 B (-0.7%)
@module-federation/metro-plugin-rnc-cli 411 B -26 B (-5.9%) 411 B -26 B (-5.9%)
@module-federation/node 9.2 kB -28 B (-0.3%) 9.2 kB -28 B (-0.3%)
@module-federation/runtime-core 15.2 kB no change 15.0 kB no change
@module-federation/runtime-tools 89 B no change 89 B no change
@module-federation/storybook-addon 1.9 kB -25 B (-1.3%) 1.7 kB -24 B (-1.3%)
@module-federation/utilities 2.6 kB -32 B (-1.2%) 2.6 kB -32 B (-1.2%)

Consumer scenarios

Scenario Web output (gzip) Delta Node output (gzip) Delta Gap (node-web) Delta
Enhanced remoteEntry 21.4 kB -17 B (-0.1%) 22.5 kB -12 B (-0.1%) +1.1 kB +5 B

Total dist (raw): 6.78 MB (-57 B (-0.0%))
Total ESM gzip: 76.6 kB (no change)
Total web bundle (gzip): 205.4 kB (-319 B (-0.2%))
Total node bundle (gzip): 205.9 kB (-317 B (-0.2%))
Tracked ./bundler entry gzip: 556 B (no change)
Tracked ./bundler web bundle (gzip): 4.8 kB (no change)
Tracked ./bundler node bundle (gzip): 4.8 kB (no change)

Bundle sizes are generated with rslib (Rspack). Package-root metrics preserve the historical report. Tracked subpath exports such as ./bundler are measured separately so ENV_TARGET-driven tree-shaking is visible. Bare imports are externalized to keep package-level sizes consistent, and assets are emitted as resources.

Bumps [ws](https://github.com/websockets/ws) from 8.18.0 to 8.20.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](websockets/ws@8.18.0...8.20.1)

---
updated-dependencies:
- dependency-name: ws
  dependency-version: 8.20.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/ws-8.20.1 branch from 681db88 to 13c96ea Compare May 21, 2026 11:54
Copy link
Copy Markdown
Contributor

@gioboa gioboa left a comment

Choose a reason for hiding this comment

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

This is solving this vulnerability issue.

c0327ec [security] Fix uninitialized memory disclosure in websocket.close()

Image

cc @2heal1

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