9.1Critical
CVE-2026-27699Basic FTP has Path Traversal Vulnerability in its downloadToDir() method
Description
The `basic-ftp` FTP client library for Node.js contains a path traversal vulnerability (CWE-22) in versions prior to 5.2.0 in the `downloadToDir()` method. A malicious FTP server can send directory listings with filenames containing path traversal sequences (`../`) that cause files to be written outside the intended download directory. Version 5.2.0 patches the issue.
Weakness (CWE):
CWE-22
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| patrickjuchli | basic-ftp | < 5.2.0 |
References and patches
CPE matches (NVD) (1)
cpe:2.3:a:patrickjuchli:basic-ftp:*:*:*:*:*:node.js:*:*< 5.2.0