CVE-2026-126346
published medium CVSS 3.1 · 5.9basic-ftp: Uncaught exception crashes the Node.js process when a password (or resumed-download path) contains CR/LF
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| patrickjuchli | — | basic-ftp< 6.2.3 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| patrickjuchli | basic-ftp | < 6.2.3 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-248 CWE-248: Uncaught Exception
- CWE-755 CWE-755: Improper Handling of Exceptional Conditions
References
3Provider assertions
2GitHub_M · cna
basic-ftp: Uncaught exception crashes the Node.js process when a password (or resumed-download path) contains CR/LF
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9c7370b3f6f5c22aaf9d1a2539ff89c7d08dbd330730a5a32af7460d5fb8ab9d
- Ingested
- 13 Nov 2026, 16:18:46 UTC
- Source record
- Official CVE record