CVE-2026-27699
Basic FTP has Path Traversal Vulnerability in its downloadToDir() method
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.
INFO
Published Date :
Feb. 25, 2026, 3:20 p.m.
Last Modified :
Feb. 26, 2026, 3:27 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | CRITICAL | [email protected] | ||||
| CVSS 3.1 | CRITICAL | [email protected] |
Solution
- Update basic-ftp library to version 5.2.0 or later.
- Validate file paths before writing to disk.
- Sanitize directory listing entries from servers.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-27699.
| URL | Resource |
|---|---|
| https://github.com/patrickjuchli/basic-ftp/commit/2a2a0e6514357b9eda07c2f8afbd3f04727a7cd9 | Patch |
| https://github.com/patrickjuchli/basic-ftp/releases/tag/v5.2.0 | Release Notes |
| https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5rq4-664w-9x2c | Exploit Vendor Advisory Mitigation |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-27699 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-27699
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-27699 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-27699 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Feb. 26, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Added CPE Configuration OR *cpe:2.3:a:patrickjuchli:basic-ftp:*:*:*:*:*:node.js:*:* versions up to (excluding) 5.2.0 Added Reference Type GitHub, Inc.: https://github.com/patrickjuchli/basic-ftp/commit/2a2a0e6514357b9eda07c2f8afbd3f04727a7cd9 Types: Patch Added Reference Type GitHub, Inc.: https://github.com/patrickjuchli/basic-ftp/releases/tag/v5.2.0 Types: Release Notes Added Reference Type GitHub, Inc.: https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5rq4-664w-9x2c Types: Exploit, Mitigation, Vendor Advisory -
New CVE Received by [email protected]
Feb. 25, 2026
Action Type Old Value New Value Added 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. Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H Added CWE CWE-22 Added Reference https://github.com/patrickjuchli/basic-ftp/commit/2a2a0e6514357b9eda07c2f8afbd3f04727a7cd9 Added Reference https://github.com/patrickjuchli/basic-ftp/releases/tag/v5.2.0 Added Reference https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5rq4-664w-9x2c