{"id":"CVE-2026-27699","published":"2026-02-25T14:58:56Z","modified":"2026-02-27T17:04:33Z","title":"Basic FTP has Path Traversal Vulnerability in its downloadToDir() method","vendor":"patrickjuchli","product":"basic-ftp","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00925,"percentile":0.61327,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5rq4-664w-9x2c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/patrickjuchli/basic-ftp/commit/2a2a0e6514357b9eda07c2f8afbd3f04727a7cd9","tags":["x_refsource_MISC"]},{"url":"https://github.com/patrickjuchli/basic-ftp/releases/tag/v5.2.0","tags":["x_refsource_MISC"]}],"priority":{"score":18.6,"factors":[{"name":"EPSS percentile","points":12.27},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"patrickjuchli","affectedVersions":[{"vendor":"patrickjuchli","product":"basic-ftp","versions":["< 5.2.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-02-27T17:04:25.002414Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"basic-ftp","vulnerableRanges":["<5.2.0"],"patched":["5.2.0"],"from":["GHSA-5rq4-664w-9x2c"],"provenance":"source"}],"summary":{"text":"The basic-ftp FTP client library for Node.js has a path traversal flaw in its downloadToDir() method in versions prior to 5.2.0, where filenames from directory listings are not restricted to the intended download directory. A malicious FTP server can exploit this by supplying filenames containing \"../\" sequences, which causes files to be written outside the download directory, and no authentication or user interaction is required of the attacker beyond controlling the server the client connects to.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:53Z"},"euvd":{"id":"EUVD-2026-8643","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-patrickjuchli-basic-ftp-cve-2026-27699","children":[{"from":"CVE-2026-27699","to":"CVE-2026-39983","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:basic-ftp","fromFixed":"5.2.0","toFixed":"5.2.1","daysApart":43},{"kind":"same-code","provenance":"machine","files":["src/Client.ts"],"commits":["https://github.com/patrickjuchli/basic-ftp/commit/2a2a0e6514357b9eda07c2f8afbd3f04727a7cd9","https://github.com/patrickjuchli/basic-ftp/commit/2ecc8e2c500c5234115f06fd1dbde1aa03d70f4b"],"basis":"shared function","functions":["Client"]}]}],"packageHistory":[{"cve":"CVE-2026-27699","published":"2026-02-25","fixed":"5.2.0","kev":false},{"cve":"CVE-2026-39983","published":"2026-04-09","fixed":"5.2.1","kev":false},{"cve":"CVE-2026-41324","published":"2026-04-24","fixed":"5.3.0","kev":false},{"cve":"CVE-2026-44240","published":"2026-05-12","fixed":"5.3.1","kev":false}],"package":"npm:basic-ftp"}}