CVE-2026-126345
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.
Weakness
- CWE-248: Uncaught Exception
- CWE-1321: Improperly Controlled Modification of Object Prototype Attributes
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2026-11-16 |
Timeline
- 2026-11-12Published by the CNA21:29 UTC
- 2026-11-12GitHub advisory published (GHSA-5pm8-86m8-9m6r)same day
- 2026-11-12Published in NVD22:19 UTC · 49 minutes after the CNA
- 2026-11-16CISA SSVC decision recorded4 days after publication
Exploit and advisory records
GitHub advisory GHSA-5pm8-86m8-9m6r, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm basic-ftp | before 6.2.4 | 6.2.4 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| patrickjuchli basic-ftp |
References
- https://github.com/patrickjuchli/basic-ftp/commit/a22664a45d889f7d281e5bdd212c68c0a58d0ae6
- https://github.com/patrickjuchli/basic-ftp/releases/tag/v6.2.4
- https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5pm8-86m8-9m6r
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-126345'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-126345'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-126345'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-126345'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).