{"id":"CVE-2026-27699","summary":"Basic FTP has Path Traversal Vulnerability in its downloadToDir() method","details":"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.","aliases":["GHSA-5rq4-664w-9x2c"],"modified":"2026-04-13T04:29:14.110045Z","published":"2026-02-25T14:58:56.815Z","related":["CGA-mqpg-9p2f-x355"],"database_specific":{"cwe_ids":["CWE-22"],"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27699.json"},"references":[{"type":"WEB","url":"https://github.com/patrickjuchli/basic-ftp/releases/tag/v5.2.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27699.json"},{"type":"ADVISORY","url":"https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5rq4-664w-9x2c"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27699"},{"type":"FIX","url":"https://github.com/patrickjuchli/basic-ftp/commit/2a2a0e6514357b9eda07c2f8afbd3f04727a7cd9"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/patrickjuchli/basic-ftp","events":[{"introduced":"0"},{"fixed":"5d41e45073ed1a8a3b5e5a1bbfcd131e61295bf8"}]}],"versions":["1.0.6","4.6.6","v1.0.2","v1.0.3","v1.0.4","v1.0.5","v1.0.7","v1.0.8","v1.0.9","v1.1.0","v1.1.1","v1.2.0","v2.0.0","v2.1.0","v2.10.0","v2.12.0","v2.12.1","v2.12.2","v2.12.3","v2.13.0","v2.13.1","v2.13.2","v2.14.0","v2.14.1","v2.14.2","v2.14.3","v2.14.4","v2.15.0","v2.16.0","v2.16.1","v2.17.0","v2.17.1","v2.2.0","v2.2.1","v2.3.0","v2.3.1","v2.3.2","v2.3.3","v2.4.0","v2.4.1","v2.4.2","v2.5.0","v2.5.1","v2.5.2","v2.6.0","v2.6.1","v2.6.2","v2.7.0","v2.7.1","v2.8.0","v2.8.1","v2.8.2","v2.8.3","v2.9.0","v2.9.1","v2.9.2","v3.0.0","v3.1.0","v3.1.1","v3.2.0","v3.2.1","v3.2.2","v3.3.0","v3.3.1","v3.4.0","v3.4.1","v3.4.2","v3.4.3","v3.4.4","v3.5.0","v3.6.0","v3.7.0","v3.7.1","v3.8.0","v3.8.1","v3.8.2","v3.8.3","v4.0.0","v4.0.1","v4.0.2","v4.1.0","v4.2.0","v4.2.1","v4.3.0","v4.3.1","v4.3.2","v4.4.0","v4.4.1","v4.5.0","v4.5.1","v4.5.2","v4.5.3","v4.5.4","v4.6.0","v4.6.1","v4.6.2","v4.6.3","v4.6.4","v4.6.5","v5.0.0","v5.0.1","v5.0.2","v5.0.3","v5.0.4","v5.0.5","v5.1.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-27699.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"}]}