CVE-2026-126345
basic-ftp is an FTP client for Node.js. Prior to 6.2.4, the MLSD …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/patrickjuchli/basic-ftp/commit/a22664a45d889f7d281e5bdd212c68c0a58d0ae6
- github.com/patrickjuchli/basic-ftp/releases/tag/v6.2.4
- github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5pm8-86m8-9m6r
- github.com/advisories/GHSA-5pm8-86m8-9m6r
- nvd.nist.gov/vuln/detail/CVE-2026-126345
- cve.org/CVERecord?id=CVE-2026-126345
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.