Skip to main content
← All vulnerabilities
CVE-2026-27699GHSA-5RQ4-664W-9X2C

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.2.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • patrickjuchli basic-ftp

    fixed in 5.2.0

  • basic-ftpnpm

    fixed in 5.2.0

References 3

GitHub · patrickjuchli/basic-ftp