CVE-2026-126346patrickjuchli basic-ftp
Medium 5.9 No auth needed
- Priority
- 53
- CVSS 3.1
- 5.9
- EPSS
- —
- Auth required
- No
- Published
- Nov 12, 2026
- Updated
- Nov 13, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
basic-ftp is an FTP client for Node.js. Prior to 6.2.3, FTPContext.send() throws when a command contains carriage return, line feed, or NUL characters, but calls made from response handlers execute synchronously inside the control socket's data event without an exception boundary. In Client.login(), an attacker-influenced password reaches the PASS command after a server sends a 331 response, and in a resumed download an attacker-influenced remote path reaches the RETR command after a 350 response to REST. The resulting exception does not reject client.access() or downloadTo(), escapes ordinary promise error handling, and terminates the Node.js process, while the validation guard still prevents command injection. This issue is fixed in version 6.2.3.
What to do
- Apply the vendor's security update for basic-ftp.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | basic-ftp |
< 6.2.3 |
6.2.3 |
npm install basic-ftp@6.2.3 |
Per OSV / GitHub Advisories (GHSA-r4jh-29pc-gfqr). Check the version in your lockfile before upgrading.
Affected products
- patrickjuchli · basic-ftp
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.