Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-126345 EUVD-2026-124723GHSA-5pm8-86m8-9m6r

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

Published Nov 12, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
patrickjuchli basic-ftp < 6.2.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling code-server 4.145.2-r1 —
Wolfi rolling opensearch-dashboards-3-security-dashboards-plugin 3.9.0-r12 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm basic-ftp < 6.2.4 6.2.4 GHSA-5pm8-86m8-9m6r

References