Vulnerability library
Security checkApril 22, 2024

Insufficient validation when decoding a Socket.IO packet - socket.io-parser

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmsocket.io-parser

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Due to improper type validation in the socket.io-parser library (which is used by the socket.io and socket.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.

Recommendation

Update the socket.io-parser package to the latest compatible version. Followings are version details:

  • Affected version(s): **>= 3.4.0, < 3.4.2 < 3.3.3 >= 4.0.0, < 4.0.5 >= 4.1.0, < 4.2.1**
  • Patched version(s): **3.4.2 3.3.3 4.0.5 4.2.1**

References

Could your website be exposed too?

SmartScanner can check your website for Insufficient validation when decoding a Socket.IO packet - socket.io-parser and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated April 22, 2024