CVE-2026-27699: patrickjuchli basic-ftp · Path Traversal
Affects patrickjuchli basic-ftpSource CVE Database V5
Not known to be exploited · CVSS 9.1 Critical : upgrade to 5.2.0 as a priority.
Data as of 30 Oct 2026, 06:59 UTC
- EPSS
- 0.9% chance of exploitation in 30 days – higher than 60% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.2.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 25 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade patrickjuchli basic-ftp to 5.2.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| patrickjuchlibasic-ftp | Affected
| Fixed in
|
npmbasic-ftppkg:npm/basic-ftpOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Immediately upgrade all instances of the basic-ftp library to version 5.2.0 or later, where the vulnerability is patched.
- Implement strict validation and sanitization of all filenames received from FTP servers, ensuring no path traversal sequences are allowed.
- Run FTP client processes with the least privilege necessary, restricting filesystem write permissions to the intended download directories only.
- Employ application-level sandboxing or containerization to limit the impact of any unauthorized file writes.
- Monitor file system changes in directories used for FTP downloads to detect unexpected file creations or modifications.
- Where possible, avoid connecting to untrusted FTP servers or use secure alternatives such as SFTP or FTPS with strict server validation.
- Incorporate integrity checks on downloaded files to detect tampering.
- Educate developers and DevOps teams about this vulnerability to ensure secure coding and deployment practices.
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.