Snyk has created this PR to upgrade socket.io from 2.4.1 to 4.5.1.
:information_source: 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 is 28 versions ahead of your current version.
The recommended version was released a month ago, on 2022-05-17.
add the "maxPayload" field in the handshake details (088dcb4)
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:
only set 'connected' to true after middleware execution (02b0f73)
Features
add an implementation based on uWebSockets.js (c0d8c5a)
const{ App }=require("uWebSockets.js");const{ Server }=require("socket.io");constapp=newApp();constio=newServer();io.attachApp(app);io.on("connection",(socket)=>{// ...});app.listen(3000,(token)=>{if(!token){console.warn("port already in use");}});
Snyk has created this PR to upgrade socket.io from 2.4.1 to 4.5.1.
:information_source: 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
Bug Fixes
Links:
~6.2.0
(diff)~8.2.3
Bug 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.3
Bug Fixes
RemoteSocket.data
type safe (#4234) (770ee59)SocketData
type to custom namespaces (#4233) (f2b8de7)Links:
~6.1.0
(diff)~8.2.3
Bug Fixes
Features
socket.data
(#4159) (fe8730c)Links:
~6.1.0
(diff)~8.2.3
Bug Fixes
Links:
~6.0.0
~8.2.3
Bug Fixes
Links:
~6.0.0
~8.2.3
For this release, most of the work was done on the client side, see here.
Bug Fixes
Features
Links:
~6.0.0
(diff)~8.2.3
(diff)Bug Fixes
Features
Links:
~5.2.0
~7.4.2
Bug Fixes
Links:
~5.1.0
~7.4.2
Bug Fixes
Links:
~5.1.0
~7.4.2
Commit messages
Package name: socket.io
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