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 scanRelated Issues
- File restriction bypass in socket.io-file - CVE-2020-24807
- SillyTavern has a path traversal in `/api/chats/import` allows arbitrary file write outside intended chat directory - CVE-2026-34522
- jsPDF has Local File Inclusion/Path Traversal vulnerability - CVE-2025-68428
- Saltcorn has an Unauthenticated Path Traversal in sync endpoints, allowing arbitrary file write and directory read - CVE-2026-40163


