What’s Vulnerable › Vulnerabilities
CVE-2026-27699: Basic FTP has Path Traversal Vulnerability in its downloadToDir() method
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.9% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-02-25 · updated 2026-06-17
- Weakness: CWE-22
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.
Affected products
- patrickjuchli basic-ftp: before 5.2.0 — fixed in 5.2.0
How to fix
Upgrade to a fixed version: patrickjuchli basic-ftp 5.2.0. Check the vendor advisory for mitigations.
References
- https://github.com/patrickjuchli/basic-ftp/commit/2a2a0e6514357b9eda07c2f8afbd3f04727a7cd9
- https://github.com/patrickjuchli/basic-ftp/releases/tag/v5.2.0
- https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5rq4-664w-9x2c
Get alerted when CVE-2026-27699 or the next vulnerability affects your stack