Vulnerability · Published Feb 25, 2026 · Assigned by GitHub_M

CVE-2026-27699Basic FTP has Path Traversal Vulnerability in its downloadToDir() method

Critical 9.1

In plain English

A critical-severity path traversal in basic-ftp from patrickjuchli. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 61% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.1Critical
Exploit odds (30 days)0.9%top 38.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:13node-proxy-agents0~2024040606-6+deb13u1DEBIAN-CVE-2026-27699
Debian:14node-proxy-agents0~2025070717+~cs15.2.7-1DEBIAN-CVE-2026-27699
Ubuntu:24.04:LTSnode-proxy-agentsno fix listedUBUNTU-CVE-2026-27699
Ubuntu:25.10node-proxy-agentsno fix listedUBUNTU-CVE-2026-27699
Ubuntu:26.04:LTSnode-proxy-agentsno fix listedUBUNTU-CVE-2026-27699
Ubuntu:26.10node-proxy-agentsno fix listedUBUNTU-CVE-2026-27699
npmbasic-ftp5.2.0GHSA-5rq4-664w-9x2c

Affected products (as reported)

VendorProductVersions
patrickjuchli basic-ftp < 5.2.0

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

References