CVE-2026-27699
Critical
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.
SeverityCritical
CVSS9.1
Exploit probability—
ProductPatrickjuchli Basic-ftp
PublishedFeb 25, 2026
First seenFeb 25, 2026
Weakness typeCWE-22Path traversal
How to fix
Update
- patrickjuchli basic-ftp5.2.0 or later
- basic-ftp5.2.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| patrickjuchli basic-ftp | v < 5.2.0 | 5.2.0 |
| basic-ftpnpm | v < 5.2.0 | 5.2.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.