CVE-2026-27699 json
Basic FTP has Path Traversal Vulnerability in its downloadToDir() method
published 2026-02-25 8 mo ago modified 2026-09-10 1 mo ago also GHSA-5rq4-664w-9x2c , EUVD-2026-8643
- cvss
- 9.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 61%
- public exploits
- 0
- none known
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.
Patch / fix
- npm basic-ftp 5.2.0
- patrickjuchli basic-ftp 5.2.0
- node-proxy-agents Debian 13 0~2024040606-6+deb13u1
- node-proxy-agents Debian 14 0~2025070717+~cs15.2.7-1
debian advisories DEBIAN-CVE-2026-27699
- agama-integration-tests openSUSE Tumbleweed 1785848065.5562c7c-4.1
opensuse advisories openSUSE-SU-2026:11452-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-27699 updated cvss 7.5
basic-ftp: basic-ftp: File overwrite due to path traversal
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 8 mo ago
Exploit prediction
0.94% chance of exploitation in the next 30 days, higher than 61% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5rq4-664w-9x2c referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | basic-ftp | <5.2.0 |
5.2.0 |
Affected products
- patrickjuchli basic-ftp
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/patrickjuchli/basic-ftp/commit/2a2a0e6514357b9eda07c2f8afbd3f04727a7cd9
web, patch
-
github.com
/patrickjuchli/basic-ftp/security/advisories/GHSA-5rq4-664w-9x2c
web, exploit, mitigation, vendor-advisory
-
github.com
/patrickjuchli/basic-ftp/releases/tag/v5.2.0
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-27699
advisory
-
github.com
/patrickjuchli/basic-ftp
package
Sources
- CVE List CVE-2026-27699
- GitHub Advisory GHSA-5rq4-664w-9x2c
- NVD CVE-2026-27699
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.