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.
References
| Link | Resource |
|---|---|
| https://github.com/patrickjuchli/basic-ftp/commit/2a2a0e6514357b9eda07c2f8afbd3f04727a7cd9 | Patch |
| https://github.com/patrickjuchli/basic-ftp/releases/tag/v5.2.0 | Release Notes |
| https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5rq4-664w-9x2c | Exploit Vendor Advisory Mitigation |
Configurations
History
26 Feb 2026, 15:27
| Type | Values Removed | Values Added |
|---|---|---|
| CPE | cpe:2.3:a:patrickjuchli:basic-ftp:*:*:*:*:*:node.js:*:* | |
| First Time |
Patrickjuchli basic-ftp
Patrickjuchli |
|
| References | () https://github.com/patrickjuchli/basic-ftp/commit/2a2a0e6514357b9eda07c2f8afbd3f04727a7cd9 - Patch | |
| References | () https://github.com/patrickjuchli/basic-ftp/releases/tag/v5.2.0 - Release Notes | |
| References | () https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5rq4-664w-9x2c - Exploit, Vendor Advisory, Mitigation |
25 Feb 2026, 15:22
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-02-25 15:20
Updated : 2026-02-26 15:27
NVD link : CVE-2026-27699
Mitre link : CVE-2026-27699
CVE.ORG link : CVE-2026-27699
JSON object : View
Products Affected
patrickjuchli
- basic-ftp
CWE
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
