Lucene search

K
osvGoogleOSV:GHSA-9H4G-27M8-QJRG
HistoryJul 07, 2020 - 7:24 p.m.

Path Traversal in socket.io-file

2020-07-0719:24:47
Google
osv.dev
6

EPSS

0.002

Percentile

56.7%

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.

EPSS

0.002

Percentile

56.7%

Related for OSV:GHSA-9H4G-27M8-QJRG