Read the docs
TI-2026-22075 Aliases CVE-2026-27699GHSA-5rq4-664w-9x2c

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

Priority HIGH 82CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00939 61st percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed basic-ftp (patrickjuchli): 5.2.0basic-ftp (npm): 5.2.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
patrickjuchlibasic-ftpbefore 5.2.05.2.0Patch availableCNA
—basic-ftp (npm)before 5.2.05.2.0Patch availableGHSA-5rq4-664w-9x2c
  • basic-ftp Vendorpatrickjuchli Affected before 5.2.0 Fixed in 5.2.0 Patch available CNA
  • basic-ftp (npm) Vendor— Affected before 5.2.0 Fixed in 5.2.0 Patch available GHSA-5rq4-664w-9x2c

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:patrickjuchli:basic-ftp:*:*:*:*:*:node.js:*:*before 5.2.0Vulnerablepatrickjuchli
  • cpe:2.3:a:patrickjuchli:basic-ftp:*:*:*:*:*:node.js:*:* Versions before 5.2.0 Vulnerable ·patrickjuchli

Remediation

  • Fix · CNA basic-ftp (patrickjuchli) Fixed in 5.2.0
  • Fix · GHSA-5rq4-664w-9x2c basic-ftp (npm) Fixed in 5.2.0 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-27699
  2. 2026-10-03 Alias added: GHSA-5rq4-664w-9x2c

References

  • TI-2026-28837 FTP Command Injection via CRLF in basic-ftp CVSS 3.1HIGH 8.6
  • TI-2026-29925 basic-ftp vulnerable to denial of service via unbounded memory consumption in Client.list() CVSS 3.1HIGH 7.5

Sources