CVE Explorer
CVE-2026-27699
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"basic-ftp","vendor":"patrickjuchli","versions":[{"status":"affected","version":"< 5.2.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:642d436753e8466a30c7590daa58a133ecebba3430b88d59b30f263733082ffa · sha256:afbdc6a026afceb5… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.1,"baseSeverity":"CRITICAL","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:642d436753e8466a30c7590daa58a133ecebba3430b88d59b30f263733082ffa · sha256:afbdc6a026afceb5… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-22","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:642d436753e8466a30c7590daa58a133ecebba3430b88d59b30f263733082ffa · sha256:afbdc6a026afceb5… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/patrickjuchli/basic-ftp/commit/2a2a0e6514357b9eda07c2f8afbd3f04727a7cd9","tags":["x_refsource_MISC"],"url":"https://github.com/patrickjuchli/basic-ftp/commit/2a2a0e6514357b9eda07c2f8afbd3f04727a7cd9"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:642d436753e8466a30c7590daa58a133ecebba3430b88d59b30f263733082ffa · sha256:afbdc6a026afceb5… · /containers/cna/references/1
{"name":"https://github.com/patrickjuchli/basic-ftp/releases/tag/v5.2.0","tags":["x_refsource_MISC"],"url":"https://github.com/patrickjuchli/basic-ftp/releases/tag/v5.2.0"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:642d436753e8466a30c7590daa58a133ecebba3430b88d59b30f263733082ffa · sha256:afbdc6a026afceb5… · /containers/cna/references/2
{"name":"https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5rq4-664w-9x2c","tags":["x_refsource_CONFIRM"],"url":"https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5rq4-664w-9x2c"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:642d436753e8466a30c7590daa58a133ecebba3430b88d59b30f263733082ffa · sha256:afbdc6a026afceb5… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.