-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump ws, engine.io and socket.io-adapter #21
Merged
Merged
+30
−71
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bumps [ws](https://github.com/websockets/ws), [engine.io](https://github.com/socketio/engine.io) and [socket.io-adapter](https://github.com/socketio/socket.io-adapter). These dependencies needed to be updated together. Updates `ws` from 8.14.2 to 8.17.1 - [Release notes](https://github.com/websockets/ws/releases) - [Commits](websockets/ws@8.14.2...8.17.1) Updates `engine.io` from 6.5.4 to 6.5.5 - [Release notes](https://github.com/socketio/engine.io/releases) - [Changelog](https://github.com/socketio/engine.io/blob/main/CHANGELOG.md) - [Commits](socketio/engine.io@6.5.4...6.5.5) Updates `socket.io-adapter` from 2.5.2 to 2.5.5 - [Release notes](https://github.com/socketio/socket.io-adapter/releases) - [Changelog](https://github.com/socketio/socket.io-adapter/blob/main/CHANGELOG.md) - [Commits](socketio/socket.io-adapter@2.5.2...2.5.5) --- updated-dependencies: - dependency-name: ws dependency-type: indirect - dependency-name: engine.io dependency-type: indirect - dependency-name: socket.io-adapter dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
dependabot
bot
added
the
dependencies
Pull requests that update a dependency file
label
Jun 25, 2024
@dependabot merge
[cid:barra_a177a839-9c5b-4bba-aecf-1f0fb16ba72c.png]
Patricio Castillo
JEFE TECNICO PROYECTOS
TECNOLOGIA
(02) 3976400 Ext. 1059
***@***.***
[cid:logo_pronaca_3cf0a201-809e-44d4-9528-e49a0df1ec4b.png]
[cid:logosfirma-03_4160a330-49bd-4088-a41f-a8efeeb4f45b.png]
[cid:pronaca_disclaimer_4b3367cb-cb86-4418-8b70-cbf3829c93eb.png]
<http://www.pronaca.com>
De: dependabot[bot] ***@***.***>
Enviado el: martes, 25 de junio de 2024 16:53
Para: pjc0702/DevOpsPC ***@***.***>
CC: Subscribed ***@***.***>
Asunto: [pjc0702/DevOpsPC] Bump ws, engine.io and socket.io-adapter (PR #21)
This automated pull request fixes a security vulnerability<https://github.com/pjc0702/DevOpsPC/security/dependabot/53> (high severity).
Learn more about Dependabot security updates<https://docs.github.com/github/managing-security-vulnerabilities/configuring-dependabot-security-updates>.
…________________________________
Bumps ws<https://github.com/websockets/ws>, engine.io<https://github.com/socketio/engine.io> and socket.io-adapter<https://github.com/socketio/socket.io-adapter>. These dependencies needed to be updated together.
Updates ws from 8.14.2 to 8.17.1
Release notes
Sourced from ws's releases<https://github.com/websockets/ws/releases>.
8.17.1
Bug fixes
* Fixed a DoS vulnerability (#2231<https://redirect.github.com/websockets/ws/issues/2231>).
A request with a number of headers exceeding the[server.maxHeadersCount][] threshold could be used to crash a ws server.
const http = require('http');
const WebSocket = require('ws');
const wss = new WebSocket.Server({ port: 0 }, function () {
const chars = "!#$%&'*+-.0123456789abcdefghijklmnopqrstuvwxyz^_`|~".split('');
const headers = {};
let count = 0;
for (let i = 0; i < chars.length; i++) {
if (count === 2000) break;
for (let j = 0; j < chars.length; j++) {
const key = chars[i] + chars[j];
headers[key] = 'x';
if (++count === 2000) break;
}
}
headers.Connection = 'Upgrade';
headers.Upgrade = 'websocket';
headers['Sec-WebSocket-Key'] = 'dGhlIHNhbXBsZSBub25jZQ==';
headers['Sec-WebSocket-Version'] = '13';
const request = http.request({
headers: headers,
host: '127.0.0.1',
port: wss.address().port
});
request.end();
});
The vulnerability was reported by Ryan LaPointe<https://github.com/rrlapointe> in websockets/ws#2230<https://redirect.github.com/websockets/ws/issues/2230>.
In vulnerable versions of ws, the issue can be mitigated in the following ways:
1. Reduce the maximum allowed length of the request headers using the [--max-http-header-size=size][] and/or the [maxHeaderSize][] options so that no more headers than the server.maxHeadersCount limit can be sent.
... (truncated)
Commits
* 3c56601<websockets/ws@3c56601> [dist] 8.17.1
* e55e510<websockets/ws@e55e510> [security] Fix crash when the Upgrade header cannot be read (#2231<https://redirect.github.com/websockets/ws/issues/2231>)
* 6a00029<websockets/ws@6a00029> [test] Increase code coverage
* ddfe4a8<websockets/ws@ddfe4a8> [perf] Reduce the amount of crypto.randomFillSync() calls
* b73b118<websockets/ws@b73b118> [dist] 8.17.0
* 29694a5<websockets/ws@29694a5> [test] Use the highWaterMark variable
* 934c9d6<websockets/ws@934c9d6> [ci] Test on node 22
* 1817bac<websockets/ws@1817bac> [ci] Do not test on node 21
* 96c9b3d<websockets/ws@96c9b3d> [major] Flip the default value of allowSynchronousEvents (#2221<https://redirect.github.com/websockets/ws/issues/2221>)
* e5f32c7<websockets/ws@e5f32c7> [fix] Emit at most one event per event loop iteration (#2218<https://redirect.github.com/websockets/ws/issues/2218>)
* Additional commits viewable in compare view<websockets/ws@8.14.2...8.17.1>
Updates engine.io from 6.5.4 to 6.5.5
Release notes
Sourced from engine.io's releases<https://github.com/socketio/engine.io/releases>.
6.5.5
This release contains a bump of the ws dependency, which includes an important security fix<websockets/ws@e55e510>.
Advisory: GHSA-3h5v-q93c-6h6q<https://github.com/advisories/GHSA-3h5v-q93c-6h6q>
Bug Fixes
* types: make socket.request writable (#697<https://redirect.github.com/socketio/engine.io/issues/697>) (0efa04b<socketio/engine.io@0efa04b>)
Links
* Diff: ***@***.***<socketio/engine.io@6.5.4...6.5.5>
* Client release: -
* ws@~8.17.1<https://github.com/websockets/ws/releases/tag/8.17.1> (diff<websockets/ws@8.11.0...8.17.1>)
Changelog
Sourced from engine.io's changelog<https://github.com/socketio/engine.io/blob/main/CHANGELOG.md>.
6.5.5<socketio/engine.io@6.5.4...6.5.5> (2024-06-18)
This release contains a bump of the ws dependency, which includes an important security fix<websockets/ws@e55e510>.
Advisory: GHSA-3h5v-q93c-6h6q<https://github.com/advisories/GHSA-3h5v-q93c-6h6q>
Bug Fixes
* types: make socket.request writable (#697<https://redirect.github.com/socketio/engine.io/issues/697>) (0efa04b<socketio/engine.io@0efa04b>)
Dependencies
* ws@~8.17.1<https://github.com/websockets/ws/releases/tag/8.17.1> (diff<websockets/ws@8.11.0...8.17.1>)
3.6.2<socketio/engine.io@3.6.1...3.6.2> (2024-06-18)
This release contains a bump of the ws dependency, which includes an important security fix<websockets/ws@e55e510>.
Advisory: GHSA-3h5v-q93c-6h6q<https://github.com/advisories/GHSA-3h5v-q93c-6h6q>
Dependencies
* ws@~7.5.10<https://github.com/websockets/ws/releases/tag/7.5.10> (diff<websockets/ws@7.4.2...7.5.10>)
Commits
* 0cb977a<socketio/engine.io@0cb977a> chore(release): 6.5.5
* adaa207<socketio/engine.io@adaa207> chore(deps): bump ws from 8.11.0 to 8.17.1 (#702<https://redirect.github.com/socketio/engine.io/issues/702>)
* 0efa04b<socketio/engine.io@0efa04b> fix(types): make socket.request writable (#697<https://redirect.github.com/socketio/engine.io/issues/697>)
* See full diff in compare view<socketio/engine.io@6.5.4...6.5.5>
Updates socket.io-adapter from 2.5.2 to 2.5.5
Release notes
Sourced from socket.io-adapter's releases<https://github.com/socketio/socket.io-adapter/releases>.
2.5.4
Bug Fixes
* ensure the order of the commands (a13f35f<socketio/socket.io-adapter@a13f35f>)
* types: ensure compatibility with TypeScript < 4.5 (ca397f3<socketio/socket.io-adapter@ca397f3>)
Links
* Diff: ***@***.***<socketio/socket.io-adapter@2.5.3...2.5.4>
2.5.3
Two abstract classes were imported from the Redis adapter repository<https://github.com/socketio/socket.io-redis-adapter/blob/bd32763043a2eb79a21dffd8820f20e598348adf/lib/cluster-adapter.ts>:
* the ClusterAdapter class, which manages the messages sent between the server instances of the cluster
* the ClusterAdapterWithHeartbeat class, which extends the ClusterAdapter and adds a heartbeat mechanism in order to check the healthiness of the other instances
Other adapters can then just extend those classes and only have to implement the pub/sub mechanism (and not the internal chit-chat protocol):
class MyAdapter extends ClusterAdapterWithHeartbeat {
constructor(nsp, pubSub, opts) {
super(nsp, opts);
this.pubSub = pubSub;
pubSub.subscribe("main-channel", (message) => this.onMessage(message));
pubSub.subscribe("specific-channel#" + this.uid, (response) => this.onResponse(response));
}
doPublish(message) {
return this.pubSub.publish("main-channel", message);
}
doPublishResponse(requesterUid, response) {
return this.pubSub.publish("specific-channel#" + requesterUid, response);
}
}
Besides, the number of "timeout reached: only x responses received out of y" errors (which can happen when a server instance leaves the cluster) should be greatly reduced by this commit<socketio/socket.io-adapter@0e23ff0>.
Bug Fixes
* cluster: fix count in fetchSockets() method (80af4e9<socketio/socket.io-adapter@80af4e9>)
* cluster: notify the other nodes when closing (0e23ff0<socketio/socket.io-adapter@0e23ff0>)
Performance Improvements
* cluster: use timer.refresh() (d99a71b<socketio/socket.io-adapter@d99a71b>)
... (truncated)
Changelog
Sourced from socket.io-adapter's changelog<https://github.com/socketio/socket.io-adapter/blob/main/CHANGELOG.md>.
2.5.5<socketio/socket.io-adapter@2.5.4...2.5.5> (2024-06-18)
This release contains a bump of the ws dependency, which includes an important security fix<websockets/ws@e55e510>.
Advisory: GHSA-3h5v-q93c-6h6q<https://github.com/advisories/GHSA-3h5v-q93c-6h6q>
2.5.4<socketio/socket.io-adapter@2.5.3...2.5.4> (2024-02-22)
Bug Fixes
* ensure the order of the commands (a13f35f<socketio/socket.io-adapter@a13f35f>)
* types: ensure compatibility with TypeScript < 4.5 (ca397f3<socketio/socket.io-adapter@ca397f3>)
2.5.3<socketio/socket.io-adapter@2.5.2...2.5.3> (2024-02-21)
Two abstract classes were imported from the Redis adapter repository<https://github.com/socketio/socket.io-redis-adapter/blob/bd32763043a2eb79a21dffd8820f20e598348adf/lib/cluster-adapter.ts>:
* the ClusterAdapter class, which manages the messages sent between the server instances of the cluster
* the ClusterAdapterWithHeartbeat class, which extends the ClusterAdapter and adds a heartbeat mechanism in order to check the healthiness of the other instances
Other adapters can then just extend those classes and only have to implement the pub/sub mechanism (and not the internal chit-chat protocol):
class MyAdapter extends ClusterAdapterWithHeartbeat {
constructor(nsp, pubSub, opts) {
super(nsp, opts);
this.pubSub = pubSub;
pubSub.subscribe("main-channel", (message) => this.onMessage(message));
pubSub.subscribe("specific-channel#" + this.uid, (response) => this.onResponse(response));
}
doPublish(message) {
return this.pubSub.publish("main-channel", message);
}
doPublishResponse(requesterUid, response) {
return this.pubSub.publish("specific-channel#" + requesterUid, response);
}
}
Besides, the number of "timeout reached: only x responses received out of y" errors (which can happen when a server instance leaves the cluster) should be greatly reduced by this commit<socketio/socket.io-adapter@0e23ff0>.
Bug Fixes
... (truncated)
Commits
* 05a190a<socketio/socket.io-adapter@05a190a> chore(release): 6.5.5
* 93fe190<socketio/socket.io-adapter@93fe190> chore(deps): bump ws from 8.11.0 to 8.17.1 (#93<https://redirect.github.com/socketio/socket.io-adapter/issues/93>)
* 5eae5a0<socketio/socket.io-adapter@5eae5a0> chore(release): 2.5.4
* 005d546<socketio/socket.io-adapter@005d546> ci: test with older TypeScript version
* a13f35f<socketio/socket.io-adapter@a13f35f> fix: ensure the order of the commands
* 207c0db<socketio/socket.io-adapter@207c0db> refactor: break circular dependency (2)
* abc93a9<socketio/socket.io-adapter@abc93a9> refactor: break circular dependency (1)
* 9d4c4a7<socketio/socket.io-adapter@9d4c4a7> refactor(cluster): export ClusterAdapterOptions and MessageType types
* ca397f3<socketio/socket.io-adapter@ca397f3> fix(types): ensure compatibility with TypeScript < 4.5
* 549156c<socketio/socket.io-adapter@549156c> chore(release): 2.5.3
* Additional commits viewable in compare view<socketio/socket.io-adapter@2.5.2...2.5.5>
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 merge will merge this PR after your CI passes on it
* @dependabot squash and merge will squash and merge this PR after your CI passes on it
* @dependabot cancel merge will cancel a previously requested merge and block automerging
* @dependabot reopen will reopen this PR if it is closed
* @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
* @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<https://github.com/pjc0702/DevOpsPC/network/alerts>.
________________________________
You can view, comment on, or merge this pull request online at:
#21
Commit Summary
* 43102e4<43102e4> Bump ws, engine.io and socket.io-adapter
File Changes
(1 file<https://github.com/pjc0702/DevOpsPC/pull/21/files>)
* M package-lock.json<https://github.com/pjc0702/DevOpsPC/pull/21/files#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519> (101)
Patch Links:
* https://github.com/pjc0702/DevOpsPC/pull/21.patch
* https://github.com/pjc0702/DevOpsPC/pull/21.diff
—
Reply to this email directly, view it on GitHub<#21>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APKO275N2DLSI6UQEXJDKHDZJHRFFAVCNFSM6AAAAABJ4VH7A6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3TGNZSHAYDSMY>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.******@***.***>>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bumps ws, engine.io and socket.io-adapter. These dependencies needed to be updated together.
Updates
ws
from 8.14.2 to 8.17.1Release notes
Sourced from ws's releases.
... (truncated)
Commits
3c56601
[dist] 8.17.1e55e510
[security] Fix crash when the Upgrade header cannot be read (#2231)6a00029
[test] Increase code coverageddfe4a8
[perf] Reduce the amount ofcrypto.randomFillSync()
callsb73b118
[dist] 8.17.029694a5
[test] Use thehighWaterMark
variable934c9d6
[ci] Test on node 221817bac
[ci] Do not test on node 2196c9b3d
[major] Flip the default value ofallowSynchronousEvents
(#2221)e5f32c7
[fix] Emit at most one event per event loop iteration (#2218)Updates
engine.io
from 6.5.4 to 6.5.5Release notes
Sourced from engine.io's releases.
Changelog
Sourced from engine.io's changelog.
Commits
0cb977a
chore(release): 6.5.5adaa207
chore(deps): bump ws from 8.11.0 to 8.17.1 (#702)0efa04b
fix(types): make socket.request writable (#697)Updates
socket.io-adapter
from 2.5.2 to 2.5.5Release notes
Sourced from socket.io-adapter's releases.
... (truncated)
Changelog
Sourced from socket.io-adapter's changelog.
... (truncated)
Commits
05a190a
chore(release): 6.5.593fe190
chore(deps): bump ws from 8.11.0 to 8.17.1 (#93)5eae5a0
chore(release): 2.5.4005d546
ci: test with older TypeScript versiona13f35f
fix: ensure the order of the commands207c0db
refactor: break circular dependency (2)abc93a9
refactor: break circular dependency (1)9d4c4a7
refactor(cluster): export ClusterAdapterOptions and MessageType typesca397f3
fix(types): ensure compatibility with TypeScript < 4.5549156c
chore(release): 2.5.3Dependabot 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 merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@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.