Path Traversal in Patrickjuchli Basic-Ftp
CVE-2026-27699
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.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H.
EPSS exploit prediction
EPSS 0.009, 61.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Patrickjuchli Basic-Ftp — versions < 5.2.0
Weakness classification (CWE)
References
- https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5rq4-664w-9x2c (Exploit, Mitigation, Vendor Advisory)
- https://github.com/patrickjuchli/basic-ftp/commit/2a2a0e6514357b9eda07c2f8afbd3f04727a7cd9 (Patch)
- https://github.com/patrickjuchli/basic-ftp/releases/tag/v5.2.0 (Release Notes)