Vulnerability · Published Feb 25, 2026 · Assigned by GitHub_M
CVE-2026-27699Basic FTP has Path Traversal Vulnerability in its downloadToDir() method
Critical 9.1
In plain English
A critical-severity path traversal in basic-ftp from patrickjuchli. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 61% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | node-proxy-agents | 0~2024040606-6+deb13u1 | DEBIAN-CVE-2026-27699 |
| Debian:14 | node-proxy-agents | 0~2025070717+~cs15.2.7-1 | DEBIAN-CVE-2026-27699 |
| Ubuntu:24.04:LTS | node-proxy-agents | no fix listed | UBUNTU-CVE-2026-27699 |
| Ubuntu:25.10 | node-proxy-agents | no fix listed | UBUNTU-CVE-2026-27699 |
| Ubuntu:26.04:LTS | node-proxy-agents | no fix listed | UBUNTU-CVE-2026-27699 |
| Ubuntu:26.10 | node-proxy-agents | no fix listed | UBUNTU-CVE-2026-27699 |
| npm | basic-ftp | 5.2.0 | GHSA-5rq4-664w-9x2c |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| patrickjuchli | basic-ftp | < 5.2.0 |
Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H