Uncaught exception in basic-ftp crashes Node.js on CR/LF in commands
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-248.
Summary
basic-ftp, an FTP client for Node.js, is affected before 6.2.3. FTPContext.send() throws on carriage return, line feed or NUL characters in a command, but calls made from response handlers run without an exception boundary, so the exception is not caught. An unauthenticated remote attacker who can influence the login password or a resumed download path can crash the Node.js process (CWE-248), while command injection is still prevented. Exploitation is not reported as known in CISA KEV, and no public exploit is linked.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| patrickjuchli | basic-ftp | before 6.2.3 | 6.2.3 | Patch available | CNA |
| — | basic-ftp (npm) | before 6.2.3 | 6.2.3 | Patch available | GHSA-r4jh-29pc-gfqr |
- basic-ftp Vendorpatrickjuchli Affected before 6.2.3 Fixed in 6.2.3 Patch available CNA
- basic-ftp (npm) Vendor— Affected before 6.2.3 Fixed in 6.2.3 Patch available GHSA-r4jh-29pc-gfqr
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:patrickjuchli:basic-ftp:*:*:*:*:*:*:*:* | — | — | patrickjuchli |
- cpe:2.3:a:patrickjuchli:basic-ftp:*:*:*:*:*:*:*:* Versions — — ·patrickjuchli
Remediation
Upgrade basic-ftp to version 6.2.3 or later, which fixes the issue. The sources list no vendor advisory identifiers for this fix.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA basic-ftp (patrickjuchli) Fixed in 6.2.3
- Fix · GHSA-r4jh-29pc-gfqr basic-ftp (npm) Fixed in 6.2.3 Advisory →
Timeline
- 2026-11-12 Threatist record created from CVE-2026-126346
- 2026-11-12 Alias added: GHSA-r4jh-29pc-gfqr
- 2026-11-12 Fix available: npm/[email protected] · GHSA-r4jh-29pc-gfqr
- 2026-11-12 CVSS score added · GHSA-r4jh-29pc-gfqr
- 2026-11-12 Weakness changed · GHSA-r4jh-29pc-gfqr
- 2026-11-12 4 new references · GHSA-r4jh-29pc-gfqr
- 2026-11-13 CISA SSVC decision points changed
References
More patrickjuchli vulnerabilities
- TI-2026-22075 Basic FTP has Path Traversal Vulnerability in its downloadToDir() method CVSS 3.1CRITICAL 9.8
- TI-2026-28837 FTP Command Injection via CRLF in basic-ftp CVSS 3.1HIGH 8.6
- TI-2026-65547 basic-ftp: Quadratic-time CPU denial of service in Client.list() Unix directory-listing parser (RE_LINE backtracking) CVSS 4.0HIGH 8.2
- TI-2026-32217 Uncontrolled resource consumption in patrickjuchli basic-ftp CVSS 3.1HIGH 7.5
- TI-2026-29925 basic-ftp vulnerable to denial of service via unbounded memory consumption in Client.list() CVSS 3.1HIGH 7.5
- TI-2026-91032 basic-ftp MLSD parser: __proto__ fact name causes uncaught TypeError (DoS) CVSS 3.1MEDIUM 5.3
Sources
- CVE-2026-126346 · CVE Program
- CVE-2026-126346 · NVD
- FIRST EPSS
- GHSA-r4jh-29pc-gfqr · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences