Vulnerability library
Security checkJanuary 22, 2026

File restriction bypass in socket.io-file

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

High severitynpmsocket.io-file

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

All versions of socket.io-fileare vulnerable to a file restriction bypass. The validation for valid file types only happens on the client-side, which allows an attacker to intercept the Websocket request post-validation and alter the name value to upload any file types.

No fix is currently available.

Recommendation

No fix is available yet. Followings are affected versions:

  • <= 2.0.31

References

Could your website be exposed too?

SmartScanner can check your website for File restriction bypass in socket.io-file and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 22, 2026