CVE-2026-27699
The `basic-ftp` FTP client library for Node.js contains a path …
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/patrickjuchli/basic-ftp/commit/2a2a0e6514357b9eda07c2f8afbd3f04727a7cd9
- github.com/patrickjuchli/basic-ftp/releases/tag/v5.2.0
- github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5rq4-664w-9x2c
- nvd.nist.gov/vuln/detail/CVE-2026-27699
- github.com/advisories/GHSA-5rq4-664w-9x2c
- nvd.nist.gov/vuln/detail/CVE-2026-27699
- cve.org/CVERecord?id=CVE-2026-27699
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.