[Snyk] Upgrade socket.io from 2.5.0 to 4.5.4 #128
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.
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade socket.io from 2.5.0 to 4.5.4.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Warning: This is a major version upgrade, and may be a breaking change.
The recommended version fixes:
SNYK-JS-ENGINEIO-1056749
Why? Proof of Concept exploit, Has a fix available, CVSS 7.5
(*) Note that the real score may have changed since the PR was raised.
Release notes
Package name: socket.io
-
4.5.4 - 2022-11-22
- Diff: 4.5.3...4.5.4
- Client release: 4.5.4
-
4.5.3 - 2022-10-15
- typings: accept an HTTP2 server in the constructor (d3d0a2d)
- typings: apply types to "io.timeout(...).emit()" calls (e357daf)
- Diff: 4.5.2...4.5.3
- Client release: 4.5.3
- engine.io version:
- ws version:
-
4.5.2 - 2022-09-02
- prevent the socket from joining a room after disconnection (18f3fda)
- uws: prevent the server from crashing after upgrade (ba497ee)
- Diff: 4.5.1...4.5.2
- Client release: 4.5.2
- engine.io version:
- ws version:
-
4.5.1 - 2022-05-17
- forward the local flag to the adapter when using fetchSockets() (30430f0)
- typings: add HTTPS server to accepted types (#4351) (9b43c91)
- Diff: 4.5.0...4.5.1
- Client release: 4.5.1
- engine.io version:
- ws version:
-
4.5.0 - 2022-04-23
- typings: ensure compatibility with TypeScript 3.x (#4259) (02c87a8)
- add support for catch-all listeners for outgoing packets (531104d)
- broadcast and expect multiple acks (8b20457)
- add the "maxPayload" field in the handshake details (088dcb4)
- Diff: 4.4.1...4.5.0
- Client release: 4.5.0
- engine.io version:
- ws version:
-
4.4.1 - 2022-01-06
- types: make
- types: pass
- Diff: 4.4.0...4.4.1
- Client release: 4.4.1
- engine.io version:
- ws version:
-
4.4.0 - 2021-11-18
- only set 'connected' to true after middleware execution (02b0f73)
- add an implementation based on uWebSockets.js (c0d8c5a)
const { App } = require("uWebSockets.js");
- add timeout feature (f0ed42f)
- add type information to
interface SocketData {
- Diff: 4.3.2...4.4.0
- Client release: 4.4.0
- engine.io version:
- ws version:
-
4.3.2 - 2021-11-08
- fix race condition in dynamic namespaces (#4137) (9d86397)
- Diff: 4.3.1...4.3.2
- Client release: 4.3.2
- engine.io version:
- ws version:
-
4.3.1 - 2021-10-16
- fix server attachment (#4127) (0ef2a4d)
- Diff: 4.3.0...4.3.1
- Client release: 4.3.1
- engine.io version:
- ws version:
-
4.3.0 - 2021-10-14
-
4.2.0 - 2021-08-30
-
4.1.3 - 2021-07-10
-
4.1.2 - 2021-05-17
-
4.1.1 - 2021-05-11
-
4.1.0 - 2021-05-11
-
4.0.2 - 2021-05-06
-
4.0.1 - 2021-03-31
-
4.0.0 - 2021-03-10
-
3.1.2 - 2021-02-26
-
3.1.1 - 2021-02-03
-
3.1.0 - 2021-01-15
-
3.0.5 - 2021-01-05
-
3.0.4 - 2020-12-07
-
3.0.3 - 2020-11-19
-
3.0.2 - 2020-11-17
-
3.0.1 - 2020-11-09
-
3.0.0 - 2020-11-05
-
3.0.0-rc4 - 2020-10-30
-
3.0.0-rc3 - 2020-10-26
-
3.0.0-rc2 - 2020-10-15
-
3.0.0-rc1 - 2020-10-13
-
2.5.0 - 2022-06-26
⚠️ WARNING ⚠️
- fix race condition in dynamic namespaces (05e1278)
- ignore packet received after disconnection (22d4bdf)
- only set 'connected' to true after middleware execution (226cc16)
- prevent the socket from joining a room after disconnection (f223178)
- Diff: 2.4.1...2.5.0
- Client release: 2.5.0
- engine.io version:
- ws version:
from socket.io GitHub release notesThis release contains a bump of:
engine.ioin order to fix CVE-2022-41940socket.io-parserin order to fix CVE-2022-2421.Links:
engine.io@~6.2.1(diff)ws@~8.2.3Bug Fixes
Links:
~6.2.0~8.2.3Bug Fixes
Links:
~6.2.0~8.2.3Bug Fixes
Links:
~6.2.0~8.2.3Bug Fixes
Features
This is similar to
onAny(), but for outgoing packets.Syntax:
Syntax:
So that clients in HTTP long-polling can decide how many packets they have to send to stay under the maxHttpBufferSize
value.
This is a backward compatible change which should not mandate a new major revision of the protocol (we stay in v4), as
we only add a field in the JSON-encoded handshake data:
Links:
~6.2.0(diff)~8.2.3Bug Fixes
RemoteSocket.datatype safe (#4234) (770ee59)SocketDatatype to custom namespaces (#4233) (f2b8de7)Links:
~6.1.0(diff)~8.2.3Bug Fixes
Features
const { Server } = require("socket.io");
const app = new App();
const io = new Server();
io.attachApp(app);
io.on("connection", (socket) => {
// ...
});
app.listen(3000, (token) => {
if (!token) {
console.warn("port already in use");
}
});
socket.data(#4159) (fe8730c)name: string;
age: number;
}
const io = new Server<ClientToServerEvents, ServerToClientEvents, InterServerEvents, SocketData>();
io.on("connection", (socket) => {
socket.data.name = "john";
socket.data.age = 42;
});
Links:
~6.1.0(diff)~8.2.3Bug Fixes
Links:
~6.0.0~8.2.3Bug Fixes
Links:
~6.0.0~8.2.3The default value of the
maxHttpBufferSizeoption has been decreased from 100 MB to 1 MB, in order to prevent attacks by denial of service.Security advisory: GHSA-j4f2-536g-r55m
Bug Fixes
Links:
~3.6.0(diff)~7.4.2Commit messages
Package name: socket.io
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs