CVE-2026-27699: Vulnerability in Patrickjuchli Basic-ftp

Critical. The basic-ftp library contains a path traversal vulnerability 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.

npm, CWE-22

Exploitation
None confirmed
Severity
9.1 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-5rq4-664w-9x2c
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Weakness
CWE-22
Published
25 Feb 2026
Last change
17 Jun 2026
Ecosystem
npm

Affected products

Affected versions and the first fixed release

  • Patrickjuchli Basic-ftp Before 5.2.0. Fixed in 5.2.0

Affected packages

Vulnerable version ranges and fixed releases

  • basic-ftp npm, Affected before 5.2.0. Fixed in 5.2.0

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related