Path Traversal Vulnerability in basic-ftp Library for Node.js
CVE-2026-27699
9.1CRITICAL
What is CVE-2026-27699?
The basic-ftp FTP client library for Node.js has a vulnerability that allows malicious FTP servers to exploit the 'downloadToDir()' method through path traversal sequences. This can lead to files being written outside the designated download directory if the server sends directory listings containing these sequences. The vulnerability affects all versions prior to 5.2.0, with the issue being rectified in version 5.2.0.
Affected Version(s)
basic-ftp < 5.2.0
