Skip to content

📦 Bump ws from 8.20.0 to 8.21.0 in /tools/hcdp#336

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

📦 Bump ws from 8.20.0 to 8.21.0 in /tools/hcdp#336
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/tools/hcdp/ws-8.21.0

Conversation

@dependabot

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

Copy link
Copy Markdown

Bumps ws from 8.20.0 to 8.21.0.

Release notes

Sourced from ws's releases.

8.21.0

Features

  • Introduced the maxBufferedChunks and maxFragments options (2b2abd45).

Bug fixes

  • Fixed a remote memory exhaustion DoS vulnerability (2b2abd45).

A high volume of tiny fragments and data chunks could be sent by a peer, using modest network traffic, to crash a ws server or client due to OOM.

import { WebSocket, WebSocketServer } from 'ws';
const wss = new WebSocketServer({ port: 0 }, function () {
const data = Buffer.alloc(1);
const options = { fin: false };
const { port } = wss.address();
const ws = new WebSocket(ws://localhost:${port});
ws.on('open', function () {
(function send() {
ws.send(data, options, function (err) {
if (err) return;
send();
});
})();
});
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 and fixed by Nadav Magier.

In vulnerable versions, the issue can be mitigated by lowering the value of the maxPayload option if possible.

8.20.1

... (truncated)

Commits
  • bca91ad [dist] 8.21.0
  • 2b2abd4 [security] Limit retained message parts
  • 78eabe2 [security] Add latest vulnerability to SECURITY.md
  • 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
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.
###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com//pull/336)

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

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label May 29, 2026
@dependabot dependabot Bot requested a review from a team as a code owner May 29, 2026 18:30
@github-actions

Copy link
Copy Markdown

Benchmark Results

Total benchmarks: 204

Inputs: baseline/baseline.json, bench_result.json

v8 (6176ms, 6355ms) +2.9%
v8 hermes (CI) hermes (CI)
v8-crypto 622.6ms 669.8ms
v8-deltablue 739.4ms 785.6ms
v8-raytrace 127.8ms 133.6ms
v8-regexp 593ms 606.6ms
v8-richards 937ms 941.2ms
v8-splay 225.2ms 232ms
v8-crypto (static) 452ms 457.2ms
v8-deltablue (static) 661.6ms 662.8ms
v8-raytrace (static) 91.8ms 91.2ms
v8-regexp (static) 749.2ms 795.6ms
v8-richards (static) 781.4ms 780.6ms
v8-splay (static) 195ms 198.8ms
test-suites (317886ms, 319261ms) +0.4%
test-suites hermes (CI) hermes (CI)
box2d 2949.8ms 2945ms
earley-boyer 2564.8ms 2568.4ms
navier-stokes 5743.8ms 6026.2ms
pdfjs 1038.2ms 1074.4ms
gbemu 2296ms 2648.2ms
code-load 4472.8ms 4548.8ms
typescript 3381.8ms 3394.6ms
simpleSum 8855.4ms 8842.4ms
propAccess 2691.2ms 2701.8ms
allocObj 252ms 251.8ms
allocObjLit 6371.8ms 6367ms
allocNewObj 20053ms 20610.6ms
allocArray 249ms 252.4ms
allocNewArray 34956.8ms 35435.4ms
arrayRead 115.6ms 118.8ms
arrayReadByIndex 550ms 582ms
largeArrayRead 827.2ms 785.2ms
arrayWrite 261.8ms 251.2ms
largeArrayWrite 2218ms 2208.8ms
interp-dispatch 2880ms 2874.6ms
wb-perf 8327ms 9128.4ms
arrayReverse 40.6ms 52.6ms
arrayMap 1472.6ms 1916.4ms
arrayIndexOf 143.2ms 146ms
arrayLastIndexOf 148.6ms 149.4ms
arrayEvery 2308.8ms 2246.6ms
arraySome 2174.4ms 2180ms
arrayFill 2401.2ms 2371ms
arrayFilter 1866.4ms 3986.8ms
arrayFind 3207ms 3334.2ms
arrayFindIndex 3322ms 3300.8ms
arrayPop 1031.4ms 1070.2ms
arrayReduce 1994.2ms 2054ms
arrayReduceRight 2075.8ms 2049.2ms
arrayShift 2065.8ms 2125ms
arrayUnshift 2109.4ms 2145.8ms
arrayIncludes 1216.6ms 1242.4ms
arrayFrom 1102.8ms 1125.8ms
arrayCopyWithin 1487ms 1527.6ms
stringFromCharCode 92.6ms 94.8ms
arraySlice 786.2ms 807.4ms
arraySplice 26.8ms 27.8ms
arrayOf 1048.8ms 1075.4ms
stringCharAt 1346.6ms 1332.8ms
stringMatch 3192.4ms 2943.8ms
stringSearch 3508.2ms 3285.4ms
stringStartsWith 701ms 601.8ms
stringEndsWith 650.4ms 549.4ms
stringIncludes 1520.6ms 1480.4ms
stringIndexOf 1555.6ms 1484.4ms
stringLastIndexOf 1821.4ms 1738.6ms
stringSplit 822ms 805ms
stringSlice 490ms 485.2ms
stringPadStart 2910.8ms 2906ms
stringPadEnd 2910ms 2904.4ms
regExpMatch 1506.2ms 1500ms
regExpSearch 1227ms 1221.8ms
regExpToString 1204ms 1204.6ms
stringReplace 1394.8ms 1370.4ms
regExpReplace 3309.2ms 865.6ms
regExpFlags 956.8ms 953.6ms
regExpSplit 1307.8ms 1280.6ms
numberArrayReadWrite 2477.8ms 2400.6ms
protoCache 3594.6ms 3505.6ms
box2d (static) 1792.6ms 1788.6ms
earley-boyer (static) 1875.6ms 1875.4ms
navier-stokes (static) 3410.2ms 3416.2ms
pdfjs (static) 812.8ms 795.6ms
gbemu (static) 1797ms 1779.6ms
code-load (static) 4199.2ms 4160.2ms
typescript (static) 2685.6ms 2597.4ms
simpleSum (static) 936.2ms 938ms
propAccess (static) 2298ms 2301.4ms
allocObj (static) 0.2ms 0.4ms
allocObjLit (static) 4154.4ms 4158.6ms
allocNewObj (static) 15749.2ms 16047.6ms
allocArray (static) 0.6ms 0.8ms
allocNewArray (static) 28494.2ms 28473.4ms
arrayRead (static) 74.2ms 74ms
arrayReadByIndex (static) 453.2ms 449.6ms
largeArrayRead (static) 552.2ms 555ms
arrayWrite (static) 178.4ms 172.4ms
largeArrayWrite (static) 1568.6ms 1571.4ms
interp-dispatch (static) 1918.8ms 1919ms
wb-perf (static) 8991.2ms 8994.2ms
arrayReverse (static) 37ms 36.2ms
arrayMap (static) 1064.8ms 1065ms
arrayIndexOf (static) 128.2ms 128.6ms
arrayLastIndexOf (static) 138.8ms 138.6ms
arrayEvery (static) 1397.6ms 1402.6ms
arraySome (static) 1406.6ms 1404ms
arrayFill (static) 1969.2ms 1955.2ms
arrayFilter (static) 1061ms 1125.6ms
arrayFind (static) 2242.2ms 2283.2ms
arrayFindIndex (static) 2235.8ms 2266.4ms
arrayPop (static) 878ms 880.6ms
arrayReduce (static) 1311.8ms 1342.8ms
arrayReduceRight (static) 1322.6ms 1323.8ms
arrayShift (static) 1512ms 1520.4ms
arrayUnshift (static) 1568.2ms 1571.4ms
arrayIncludes (static) 963.4ms 961.8ms
arrayFrom (static) 1030.6ms 1037.6ms
arrayCopyWithin (static) 1109.6ms 1111.8ms
stringFromCharCode (static) 77ms 76.8ms
arraySlice (static) 571.6ms 575.8ms
arraySplice (static) 26ms 27ms
arrayOf (static) 868.8ms 870.8ms
stringCharAt (static) 1100.6ms 1086.8ms
stringMatch (static) 2227.6ms 2229ms
stringSearch (static) 2219.2ms 2226.8ms
stringStartsWith (static) 494.2ms 486.2ms
stringEndsWith (static) 457.8ms 463.8ms
stringIncludes (static) 1437.4ms 1436.4ms
stringIndexOf (static) 1440.8ms 1443ms
stringLastIndexOf (static) 1956.6ms 1956.2ms
stringSplit (static) 651.2ms 650ms
stringSlice (static) 445.6ms 427.8ms
stringPadStart (static) 2294.4ms 2282.2ms
stringPadEnd (static) 2499.2ms 2289.8ms
regExpMatch (static) 1483.2ms 1484.6ms
regExpSearch (static) 1296.2ms 1214ms
regExpToString (static) 1326.6ms 1240.8ms
stringReplace (static) 1455.6ms 1370.6ms
regExpReplace (static) 851.8ms 812.2ms
regExpFlags (static) 870.6ms 806.4ms
regExpSplit (static) 1200ms 1087.4ms
numberArrayReadWrite (static) 2132.8ms 2042.6ms
protoCache (static) 3595.8ms 3584.8ms
micros (60876ms, 60480ms) -0.6%
micros hermes (CI) hermes (CI)
getNodeById.js 5273ms 5016.2ms
setInsert.js 2864.8ms 2734.4ms
stringify-number.js 1823.4ms 1823.4ms
typed-array-sort.js 22381ms 22379.6ms
getNodeById.js (static) 3941ms 3947.4ms
setInsert.js (static) 2517.6ms 2391.8ms
stringify-number.js (static) 1663.6ms 1670.4ms
typed-array-sort.js (static) 20411.4ms 20517ms
jit-benches (8563ms, 8590ms) +0.3%
jit-benches hermes (CI) hermes (CI)
idisp.js 2810.2ms 2824.6ms
idispn.js 3395.8ms 3397.6ms
idisp.js (static) 1906ms 1908.8ms
idispn.js (static) 450.8ms 459ms
many-subclasses (73437ms, 73386ms) -0.1%
many-subclasses hermes (CI) hermes (CI)
many.js 19104.8ms 18768ms
many-sh-1.js 7322.8ms 7358ms
many-sh-2.js 7329ms 7379.4ms
many-sh-3.js 7083.6ms 7094.6ms
many-sh-4.js 7235ms 7045.8ms
many.js (static) 15996ms 16350.6ms
many-sh-1.js (static) 2285.2ms 2291.2ms
many-sh-2.js (static) 2387ms 2392.6ms
many-sh-3.js (static) 2347.2ms 2352ms
many-sh-4.js (static) 2346ms 2354.2ms
map-objects (3627ms, 3612ms) -0.4%
map-objects hermes (CI) hermes (CI)
map-objects-untyped.js 1023.6ms 1012.4ms
map-objects-typed.js 957.6ms 955.4ms
map-objects-untyped.js (static) 917.2ms 916.8ms
map-objects-typed.js (static) 728.8ms 727.2ms
map-strings (4335ms, 4313ms) -0.5%
map-strings hermes (CI) hermes (CI)
map-strings-untyped.js 1196.8ms 1184.8ms
map-strings-typed.js 1139.2ms 1132.6ms
map-strings-untyped.js (static) 1092.2ms 1093.6ms
map-strings-typed.js (static) 906.8ms 901.6ms
nbody (3448ms, 3427ms) -0.6%
nbody hermes (CI) hermes (CI)
original/nbody.js 839.6ms 846.2ms
fully-typed/nbody.js 710ms 709ms
fully-typed/nbody.ts 865.2ms 845.8ms
original/nbody.js (static) 449.2ms 449.2ms
fully-typed/nbody.js (static) 135ms 130.4ms
fully-typed/nbody.ts (static) 449.2ms 446.2ms
string-switch (6503ms, 6365ms) -2.1%
string-switch (string-switch/plain) hermes (CI) hermes (CI)
bench.js 1316ms 1301.6ms
bench.js (static) 5187ms 5063.4ms
raytracer (5608ms, 5613ms) +0.1%
raytracer (raytracer/original) hermes (CI) hermes (CI)
bench-raytracer.js 1550.4ms 1548.8ms
raytracer.ts 1667.6ms 1666.2ms
bench-raytracer.js (static) 1198.4ms 1202.2ms
raytracer.ts (static) 1191.8ms 1195.6ms
MiniReact (30332ms, 29995ms) -1.1%
MiniReact hermes (CI) hermes (CI)
no-objects/out/simple-stripped.js 2239.2ms 2208.6ms
no-objects/out/simple-lowered.js 2270.8ms 2242.8ms
no-objects/out/music-stripped.js 42.6ms 41.4ms
no-objects/out/music-lowered.js 47.2ms 46.6ms
no-deps/stripped/MiniReact.js 5004ms 4961ms
no-deps/MiniReact.js 5256.2ms 4903ms
no-objects/out/simple.js 2260.4ms 2218.8ms
no-objects/out/music.js 45.6ms 43.8ms
no-objects/out/simple-stripped.js (static) 1725.2ms 1736.2ms
no-objects/out/simple-lowered.js (static) 1725.4ms 1874ms
no-objects/out/music-stripped.js (static) 18.8ms 20.4ms
no-objects/out/music-lowered.js (static) 19.4ms 18.8ms
no-deps/stripped/MiniReact.js (static) 4024.8ms 4023.2ms
no-deps/MiniReact.js (static) 3938.2ms 3951.6ms
no-objects/out/simple.js (static) 1695.2ms 1685.8ms
no-objects/out/music.js (static) 19ms 19ms
widgets (12934ms, 12956ms) +0.2%
widgets hermes (CI) hermes (CI)
simple-classes/widgets.js 1758.2ms 1746.4ms
original/es5/widgets.js 2798.8ms 2766ms
single-file/es5/widgets.js 2775.2ms 2745.6ms
simple-classes/widgets.js (static) 1012ms 1007.6ms
original/es5/widgets.js (static) 2283.2ms 2373.4ms
single-file/es5/widgets.js (static) 2306.2ms 2317.4ms

@vmoroz vmoroz enabled auto-merge (squash) June 2, 2026 21:41
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant