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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-22"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27699.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:patrickjuchli:basic-ftp:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "5.2.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "2a2a0e6514357b9eda07c2f8afbd3f04727a7cd9"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v5.2.0",
"range": [
{
"fixed": "5d41e45073ed1a8a3b5e5a1bbfcd131e61295bf8"
}
],
"source": "REFERENCES_TAG"
}
]
}