Basic FTP has Path Traversal Vulnerability in its downloadToDir() method
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| patrickjuchli | basic-ftp | before 5.2.0 | 5.2.0 | Patch available | CNA |
| — | basic-ftp (npm) | before 5.2.0 | 5.2.0 | Patch available | GHSA-5rq4-664w-9x2c |
- basic-ftp Vendorpatrickjuchli Affected before 5.2.0 Fixed in 5.2.0 Patch available CNA
- basic-ftp (npm) Vendor— Affected before 5.2.0 Fixed in 5.2.0 Patch available GHSA-5rq4-664w-9x2c
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:patrickjuchli:basic-ftp:*:*:*:*:*:node.js:*:* | before 5.2.0 | Vulnerable | patrickjuchli |
- cpe:2.3:a:patrickjuchli:basic-ftp:*:*:*:*:*:node.js:*:* Versions before 5.2.0 Vulnerable ·patrickjuchli
Remediation
- Fix · CNA basic-ftp (patrickjuchli) Fixed in 5.2.0
- Fix · GHSA-5rq4-664w-9x2c basic-ftp (npm) Fixed in 5.2.0 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-27699
- 2026-10-03 Alias added: GHSA-5rq4-664w-9x2c
References
More patrickjuchli Basic-ftp vulnerabilities
- TI-2026-28837 FTP Command Injection via CRLF in basic-ftp CVSS 3.1HIGH 8.6
- TI-2026-29925 basic-ftp vulnerable to denial of service via unbounded memory consumption in Client.list() CVSS 3.1HIGH 7.5
Sources
- CVE-2026-27699 · CVE Program
- CVE-2026-27699 · NVD
- FIRST EPSS
- GHSA-5rq4-664w-9x2c · GitHub Advisory Database · CC BY 4.0
- CVE-2026-27699 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences