{"id":"UBUNTU-CVE-2026-27699","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.","modified":"2026-03-07T05:05:25.278413Z","published":"2026-02-25T15:20:00Z","upstream":["CVE-2026-27699"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-27699"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-27699"},{"type":"REPORT","url":"https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5rq4-664w-9x2c"},{"type":"REPORT","url":"https://github.com/patrickjuchli/basic-ftp/commit/2a2a0e6514357b9eda07c2f8afbd3f04727a7cd9"},{"type":"REPORT","url":"https://github.com/patrickjuchli/basic-ftp/commit/2a2a0e6514357b9eda07c2f8afbd3f04727a7cd9"},{"type":"REPORT","url":"https://github.com/patrickjuchli/basic-ftp/releases/tag/v5.2.0"}],"affected":[{"package":{"name":"node-proxy-agents","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/node-proxy-agents@0~2023071921-5?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0~2023071921-5"],"ecosystem_specific":{"binaries":[{"binary_name":"node-agent-base","binary_version":"7.1.0~0~2023071921-5"},{"binary_name":"node-args","binary_version":"5.0.3~0~2023071921-5"},{"binary_name":"node-basic-ftp","binary_version":"5.0.3~0~2023071921-5"},{"binary_name":"node-data-uri-to-buffer","binary_version":"5.0.1~0~2023071921-5"},{"binary_name":"node-degenerator","binary_version":"5.0.1~0~2023071921-5"},{"binary_name":"node-get-uri","binary_version":"6.0.1~0~2023071921-5"},{"binary_name":"node-http-proxy-agent","binary_version":"7.0.0~0~2023071921-5"},{"binary_name":"node-https-proxy-agent","binary_version":"7.0.1~0~2023071921-5"},{"binary_name":"node-pac-proxy-agent","binary_version":"7.0.0~0~2023071921-5"},{"binary_name":"node-pac-resolver","binary_version":"7.0.0~0~2023071921-5"},{"binary_name":"node-proxy","binary_version":"2.1.1~0~2023071921-5"},{"binary_name":"node-proxy-agent","binary_version":"6.3.0~0~2023071921-5"},{"binary_name":"node-socks-proxy-agent","binary_version":"8.0.1~0~2023071921-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27699.json"}},{"package":{"name":"node-proxy-agents","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/node-proxy-agents@0~2025070717-2?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0~2024040606-5","0~2024040606-6","0~2025070717-1","0~2025070717-2"],"ecosystem_specific":{"binaries":[{"binary_name":"node-agent-base","binary_version":"7.1.4~0~2025070717-2"},{"binary_name":"node-args","binary_version":"5.0.3~0~2025070717-2"},{"binary_name":"node-basic-ftp","binary_version":"5.0.5~0~2025070717-2"},{"binary_name":"node-data-uri-to-buffer","binary_version":"6.0.2~0~2025070717-2"},{"binary_name":"node-degenerator","binary_version":"5.0.1~0~2025070717-2"},{"binary_name":"node-get-uri","binary_version":"6.0.5~0~2025070717-2"},{"binary_name":"node-http-proxy-agent","binary_version":"7.0.2~0~2025070717-2"},{"binary_name":"node-https-proxy-agent","binary_version":"7.0.6~0~2025070717-2"},{"binary_name":"node-pac-proxy-agent","binary_version":"7.2.0~0~2025070717-2"},{"binary_name":"node-pac-resolver","binary_version":"7.0.1~0~2025070717-2"},{"binary_name":"node-proxy","binary_version":"2.2.0~0~2025070717-2"},{"binary_name":"node-proxy-agent","binary_version":"6.5.0~0~2025070717-2"},{"binary_name":"node-socks-proxy-agent","binary_version":"8.0.5~0~2025070717-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27699.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}