# CVE-2026-27699: Basic FTP has Path Traversal Vulnerability in its downloadToDir() method

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.92%, higher than 61% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-25T14:58:56.815Z
- Modified: 2026-09-10T03:50:34.155Z
- Also known as: GHSA-5rq4-664w-9x2c
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- patrickjuchli basic-ftp: < 5.2.0; before 5.2.0
- basic-ftp (npm): before 5.2.0

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5rq4-664w-9x2c> (exploit, mitigation, vendor-advisory, web)
- <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://nvd.nist.gov/vuln/detail/CVE-2026-27699> (advisory)
- <https://github.com/patrickjuchli/basic-ftp> (package)

## Sources

- CVE List: [CVE-2026-27699](https://www.cve.org/CVERecord?id=CVE-2026-27699), CVE Terms of Use, modified 2026-02-27
- GitHub Advisory Database: [GHSA-5rq4-664w-9x2c](https://github.com/advisories/GHSA-5rq4-664w-9x2c), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-27699](https://nvd.nist.gov/vuln/detail/CVE-2026-27699), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-27699 · Whole record: https://cve.day/CVE-2026-27699.json · Rebuilt by cve.day 2026-11-25T22:59:14.842Z
