CVE-2026-27699
CRITICAL 9.8CVSS 3.1Basic FTP has Path Traversal Vulnerability in its downloadToDir() method
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.
- Published
- 25 Feb 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-5rq4-664w-9x2c
- Sources
- NVDJSONOSV GHSA-5rq4-664w-9x2cJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | patrickjuchli | basic-ftpcpe:2.3:a:patrickjuchli:basic-ftp:*:*:*:*:*:node.js:*:* |
< 5.2.0 | 5.2.0 |
| OSV | npm | basic-ftp | < 5.2.0 | 5.2.0 |
References
- https://github.com/patrickjuchli/basic-ftp/commit/2a2a0e6514357b9eda07c2f8afbd3f04727a7cd9 · Patch, WEB
- https://github.com/patrickjuchli/basic-ftp/releases/tag/v5.2.0 · Release Notes, WEB
- https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5rq4-664w-9x2c · Exploit, Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-27699 · ADVISORY
- https://github.com/patrickjuchli/basic-ftp · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 25 Feb 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 25 Feb 2026)