basic-ftp MLSD parser: __proto__ fact name causes uncaught TypeError (DoS)
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- 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, before 6.2.4 mishandles MLSD directory listings whose fact name is __proto__. The parser in parseListMLSD resolves the name to Object.prototype and calls it as a handler, which raises an uncaught TypeError (CWE-248) instead of an FTPError. A malicious or compromised FTP server, or an on-path attacker on a plaintext FTP session, can make Client.list() reject, and the Node.js process terminates if the application leaves that rejection unhandled.
Written with Claude Haiku 5.5 from the sources below · 2026-11-16
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- 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.4 | 6.2.4 | Patch available | CNA |
| — | basic-ftp (npm) | before 6.2.4 | 6.2.4 | Patch available | GHSA-5pm8-86m8-9m6r |
- basic-ftp Vendorpatrickjuchli Affected before 6.2.4 Fixed in 6.2.4 Patch available CNA
- basic-ftp (npm) Vendor— Affected before 6.2.4 Fixed in 6.2.4 Patch available GHSA-5pm8-86m8-9m6r
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
Update basic-ftp to version 6.2.4, which fixes the issue. The sources list no fixed version for other basic-ftp releases.
Written with Claude Haiku 5.5 from the sources below · 2026-11-16
- Fix · CNA basic-ftp (patrickjuchli) Fixed in 6.2.4
- Fix · GHSA-5pm8-86m8-9m6r basic-ftp (npm) Fixed in 6.2.4 Advisory →
Timeline
- 2026-11-12 Threatist record created from CVE-2026-126345
- 2026-11-12 Alias added: GHSA-5pm8-86m8-9m6r
- 2026-11-12 Fix available: npm/[email protected] · GHSA-5pm8-86m8-9m6r
- 2026-11-12 CVSS score added · GHSA-5pm8-86m8-9m6r
- 2026-11-12 Weakness changed · GHSA-5pm8-86m8-9m6r
- 2026-11-12 4 new references · GHSA-5pm8-86m8-9m6r
- 2026-11-16 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-91033 Uncaught exception in basic-ftp crashes Node.js on CR/LF in commands CVSS 3.1MEDIUM 5.9
Sources
- CVE-2026-126345 · CVE Program
- CVE-2026-126345 · NVD
- FIRST EPSS
- GHSA-5pm8-86m8-9m6r · 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