chore(deps): update dependency socket.io-parser to 4.2.1 [security] - abandoned #219
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 contains the following updates:
4.0.4
->4.0.5
4.2.0
->4.2.1
GitHub Vulnerability Alerts
CVE-2022-2421
Due to improper type validation in the
socket.io-parser
library (which is used by thesocket.io
andsocket.io-client
packages to encode and decode Socket.IO packets), it is possible to overwrite the _placeholder object which allows an attacker to place references to functions at arbitrary places in the resulting query object.Example:
This bubbles up in the
socket.io
package:You need to make sure that the payload that you received from the client is actually a
Buffer
object:If that's already the case, then you are not impacted by this issue, and there is no way an attacker could make your server crash (or escalate privileges, ...).
Example of values that could be sent by a malicious user:
Sample packet:
451-["hello",{"_placeholder":true,"num":10}]
undefined
Sample packet:
451-["hello",{"_placeholder":true,"num":undefined}]
Array
, like "push"Sample packet:
451-["hello",{"_placeholder":true,"num":"push"}]
Object
, like "hasOwnProperty"Sample packet:
451-["hello",{"_placeholder":true,"num":"hasOwnProperty"}]
This should be fixed by:
socket.io-parser@4.2.1
socket.io-parser@4.0.5
socket.io-parser@3.4.2
socket.io-parser@3.3.3
Dependency analysis for the
socket.io
packagesocket.io
versionsocket.io-parser
version4.5.2...latest
~4.2.0
(ref)4.1.3...4.5.1
~4.0.4
(ref)3.0.5...4.1.2
~4.0.3
(ref)3.0.0...3.0.4
~4.0.1
(ref)2.3.0...2.5.0
~3.4.0
(ref)Dependency analysis for the
socket.io-client
packagesocket.io-client
versionsocket.io-parser
version4.5.0...latest
~4.2.0
(ref)4.3.0...4.4.1
~4.1.1
(ref)3.1.0...4.2.0
~4.0.4
(ref)3.0.5
~4.0.3
(ref)3.0.0...3.0.4
~4.0.1
(ref)2.2.0...2.5.0
~3.3.0
(ref)Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.