CVE-2026-27699

Severity CVSS v4.0:
Pending analysis
Type:
CWE-22 Path Traversal
Publication date:
25/02/2026
Last modified:
26/02/2026

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.

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:patrickjuchli:basic-ftp:*:*:*:*:*:node.js:*:* 5.2.0 (excluding)