CVE-2026-27699

Critical

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.

SeverityCritical
CVSS9.1
Exploit probability—
ProductPatrickjuchli Basic-ftp
PublishedFeb 25, 2026
First seenFeb 25, 2026

How to fix

Update
  • patrickjuchli basic-ftp5.2.0 or later
  • basic-ftp5.2.0 or later

Affected products

ProductAffected versionsFixed in
patrickjuchli basic-ftpv < 5.2.05.2.0
basic-ftpnpmv < 5.2.05.2.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.