CVE-2026-126346 Details
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.
A denial-of-service vulnerability has been identified in basic-ftp, an FTP client for Node.js, affecting versions prior to 6.2.3. The issue arises in the FTPContext.send() method, which throws an error when a command includes carriage return, line feed, or NUL characters. However, this error is not properly handled when response handlers are called synchronously during the control socket's data event. As a result, an uncaught exception can occur, crashing the Node.js process. This vulnerability can be exploited by sending a password or a remote path for a resumed download that contains control characters, causing the exception to be thrown during the FTP command processing.
Users can upgrade to basic-ftp version 6.2.3 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 12, 2026CISA-ADP
Assessed Nov 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/patrickjuchli/basic-ftp/commit/0495b906bdf891e68806721b07b333dba65ec88e | [email protected] | Source CodeVendor |
| https://github.com/patrickjuchli/basic-ftp/releases/tag/v6.2.3 | [email protected] | Release NotesVendor |
| https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-r4jh-29pc-gfqr | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-248 | Uncaught Exception | [email protected] |
| CWE-755 | Improper Handling of Exceptional Conditions | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| basic-ftp | <= 6.2.2 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 13, 2026 | CVE Modified | CISA-ADP |
| Nov 12, 2026 | New CVE Received | [email protected] |
Volerion