CVE-2026-126345

GHSA-5pm8-86m8-9m6r · published 12 Nov 2026 · updated 16 Nov 2026

basic-ftp: Uncaught TypeError in MLSD directory-listing parser via __proto__ fact name causes DoS in Client.list()

5.3MediumCVSS 5.3EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in basic-ftp 6.2.4.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
patrickjuchli<6.2.4
npm: basic-ftp<6.2.4, <=6.2.36.2.4

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in basic-ftp (npm), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-126345 severity on Zeptric[![CVE-2026-126345](https://zeptric.io/badge/cve/CVE-2026-126345.svg)](https://zeptric.io/cve/CVE-2026-126345)