Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTloNGctMjdtOC1xanJn

Path Traversal in socket.io-file

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.

Permalink: https://github.com/advisories/GHSA-9h4g-27m8-qjrg
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTloNGctMjdtOC1xanJn
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: almost 4 years ago
Updated: over 1 year ago


CVSS Score: 7.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Identifiers: GHSA-9h4g-27m8-qjrg, CVE-2020-15779
References: Repository: https://github.com/rico345100/socket.io-file
Blast Radius: 14.0

Affected Packages

npm:socket.io-file
Dependent packages: 2
Dependent repositories: 74
Downloads: 1,873 last month
Affected Version Ranges: <= 2.0.31
No known fixed version
All affected versions: 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.11, 1.0.12, 1.0.13, 1.0.21, 1.0.31, 1.0.32, 1.0.41, 1.0.51, 1.0.52, 1.0.53, 1.0.54, 1.0.55, 1.0.56, 1.0.57, 1.0.58, 1.0.59, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.12, 2.0.13, 2.0.14, 2.0.15, 2.0.31