Skip to content
OpenAdvisories
Critical · 9.1 CVE-2026-27699 EUVD-2026-8643GHSA-5rq4-664w-9x2c

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

Published Feb 25, 2026 · Updated Feb 27, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
patrickjuchli basic-ftp < 5.2.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-proxy-agents 0~2025070717+~cs15.2.7-1 —
Debian 13 node-proxy-agents 0~2024040606-6+deb13u1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-proxy-agents No fix yet —
Ubuntu 26.04 LTS node-proxy-agents No fix yet —
Ubuntu 25.10 node-proxy-agents No fix yet —
Ubuntu 24.04 LTS node-proxy-agents No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed agama-integration-tests 1785848065.5562c7c-4.1 openSUSE-SU-2026:11452-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling code-server 4.106.3-r6 —
Wolfi rolling langfuse-3-worker 3.155.1-r3 —
Wolfi rolling opensearch-dashboards-3-security-dashboards-plugin 3.5.0-r4 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm basic-ftp < 5.2.0 5.2.0 GHSA-5rq4-664w-9x2c

Advisories 2

References