Vulnerability library
Security checkJanuary 09, 2023

Path Traversal 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-file are vulnerable to Path Traversal. The package fails to sanitize user input and uses it to generate the file upload paths. The socket.io-file::createFile message contains a name option that is passed directly to path.join().

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 Path Traversal 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 09, 2023