CVE-2026-126345 Details
Description
basic-ftp is an FTP client for Node.js. Prior to 6.2.4, the MLSD directory-listing parser in src/parseListMLSD.ts uses untrusted fact names from the FTP server as keys in the plain-object factHandlersByName dictionary without checking that the resolved property is an own handler. A fact named __proto__ therefore resolves to Object.prototype, bypasses the missing-handler guard, and is called as though it were a function, producing a TypeError. The error propagates through Client.list() and APIs that depend on it because it is not an FTPError. A malicious or compromised FTP server, or an on-path attacker on a plaintext FTP session, can make the affected operation reject, and the Node.js process terminates under the default behavior in Node.js 15 and later only if the application leaves that rejection unhandled. This issue is fixed in version 6.2.4.
A denial-of-service vulnerability has been identified in basic-ftp, an FTP client for Node.js, in versions prior to 6.2.4. The issue arises in the MLSD directory-listing parser, which improperly uses untrusted fact names from the FTP server as keys in a dictionary of fact handlers. This flaw allows a fact named '__proto__' to bypass validation and invoke Object.prototype as a function, leading to a TypeError. This error is not handled as an FTPError, causing it to propagate through the Client.list() method and other dependent APIs, potentially crashing the Node.js process if the rejection is unhandled. The vulnerability can be exploited by a malicious or compromised FTP server, or by an on-path attacker during a plaintext FTP session, causing the application to fail.
Users can upgrade to basic-ftp version 6.2.4 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 16, 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/security/advisories/GHSA-5pm8-86m8-9m6r | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/patrickjuchli/basic-ftp/commit/a22664a45d889f7d281e5bdd212c68c0a58d0ae6 | [email protected] | Source CodeVendor |
| https://github.com/patrickjuchli/basic-ftp/releases/tag/v6.2.4 | [email protected] | Release NotesVendor |
| https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5pm8-86m8-9m6r | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1321 | Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') | [email protected] |
| CWE-248 | Uncaught Exception | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| basic-ftp | <= 6.2.3 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 16, 2026 | CVE Modified | CISA-ADP |
| Nov 12, 2026 | New CVE Received | [email protected] |
Volerion