CVE-2026-27699CWE-22

Basic FTP has Path Traversal Vulnerability in its downloadToDir() method

Critical · published February 25, 2026

CVSS v3.1
9.1
EPSS
1%
Percentile
63.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01029 · 63.4th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2026-02-25T14:58Z
EPSS history
Timeline
  • 25 FEB 14:58Z
    Basic FTP has Path Traversal Vulnerability in its downloadToDir() method
    cvelistv5