Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| patrickjuchli | basic-ftp | < 5.2.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-proxy-agents | 0~2025070717+~cs15.2.7-1 | — |
| Debian 13 | node-proxy-agents | 0~2024040606-6+deb13u1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-proxy-agents | No fix yet | — |
| Ubuntu 26.04 LTS | node-proxy-agents | No fix yet | — |
| Ubuntu 25.10 | node-proxy-agents | No fix yet | — |
| Ubuntu 24.04 LTS | node-proxy-agents | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | agama-integration-tests | 1785848065.5562c7c-4.1 | openSUSE-SU-2026:11452-1 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | code-server | 4.106.3-r6 | — |
| Wolfi rolling | langfuse-3-worker | 3.155.1-r3 | — |
| Wolfi rolling | opensearch-dashboards-3-security-dashboards-plugin | 3.5.0-r4 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | basic-ftp | < 5.2.0 | 5.2.0 | GHSA-5rq4-664w-9x2c |
Advisories 2
- WID-SEC-2026-3046 IBM Concert: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 10, 2026
- openSUSE-SU-2026:11452-1 agama-integration-tests-1785848065.5562c7c-4.1 on GA media SUSE / openSUSE Security Updates · Aug 6, 2026