Advisory

GHSA-9h4g-27m8-qjrg

Also known as: CVE-2020-15779

Summary

Path Traversal in socket.io-file

Details

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(). It is possible to upload files to arbitrary folders on the server by sending relative paths on the name value, such as ../../test.js. The uploadDir and rename options can be used to define the file upload path.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-07-07 19:24 UTC
Modified
2026-05-04 08:45 UTC

Affected packages and fixes

socket.io-file

npm · All systems

Affected

  • introduced 0, last affected 2.0.31 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences