CVE-2026-126345basic-ftp: Uncaught TypeError in MLSD directory-listing parser via __proto__ fact name…
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
Fixed builds are available from npm: see the table below for the fixed version per release.
Debian, Red Hat have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Debian 14 | node-proxy-agents | Fix pending | DEBIAN-CVE-2026-126345 | |
| Debian 13 | node-proxy-agents | Fix pending | DEBIAN-CVE-2026-126345 | |
| Red Hat Enterprise Linux 10 | cargo | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | clippy | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | grafana | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | grafana-selinux | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rust | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rust-analyzer | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rust-debugger-common | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rust-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rust-gdb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rust-lldb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rust-src | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rust-std-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rust-std-static-aarch64-unknown-none-softfloat | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rust-std-static-wasm32-unknown-unknown | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rust-std-static-wasm32-wasip1 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rust-std-static-x86_64-unknown-none | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rust-toolset | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rust-toolset-srpm-macros | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rustfmt | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | cargo | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | clippy | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rust | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rust-analysis | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rust-analyzer | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rust-debugger-common | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rust-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rust-gdb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rust-lldb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rust-src | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rust-std-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rust-std-static-wasm32-unknown-unknown | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rust-std-static-wasm32-wasi | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rust-std-static-wasm32-wasip1 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rust-toolset | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rustfmt | Fix pending Fix deferred | ||
| npm library | basic-ftp | Fixed | 6.2.4 | GHSA-5pm8-86m8-9m6r |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- patrickjuchli basic-ftp: affected: < 6.2.4
References
- https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5pm8-86m8-9m6r
- https://github.com/patrickjuchli/basic-ftp/commit/a22664a45d889f7d281e5bdd212c68c0a58d0ae6
- https://github.com/patrickjuchli/basic-ftp/releases/tag/v6.2.4
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.