Skip to main content
VulnerabilityPublished Updated

CVE-2026-27699: patrickjuchli basic-ftp · Path Traversal

Affects patrickjuchli basic-ftpSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 9.1 Critical : upgrade to 5.2.0 as a priority.

Data as of 30 Oct 2026, 06:59 UTC

CVSS 3.1 base score
9.1Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.9% chance of exploitation in 30 days – higher than 60% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 5.2.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 25 Feb 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade patrickjuchli basic-ftp to 5.2.0.

Affected software

ProductAffectedFixed in
patrickjuchlibasic-ftpAffected
  • <5.2.0
Fixed in
  • 5.2.0
npmbasic-ftppkg:npm/basic-ftpOther threatsAffected
  • <5.2.0
Fixed in
  • 5.2.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. Immediately upgrade all instances of the basic-ftp library to version 5.2.0 or later, where the vulnerability is patched.
  2. Implement strict validation and sanitization of all filenames received from FTP servers, ensuring no path traversal sequences are allowed.
  3. Run FTP client processes with the least privilege necessary, restricting filesystem write permissions to the intended download directories only.
  4. Employ application-level sandboxing or containerization to limit the impact of any unauthorized file writes.
  5. Monitor file system changes in directories used for FTP downloads to detect unexpected file creations or modifications.
  6. Where possible, avoid connecting to untrusted FTP servers or use secure alternatives such as SFTP or FTPS with strict server validation.
  7. Incorporate integrity checks on downloaded files to detect tampering.
  8. Educate developers and DevOps teams about this vulnerability to ensure secure coding and deployment practices.

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.

References

Community reviews

Loading reviews…