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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-12T21:29:44.321Z
- Modified: 2026-11-16T20:18:59.790Z
- Also known as: GHSA-5pm8-86m8-9m6r
- Weaknesses: CWE-248, CWE-1321
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- patrickjuchli basic-ftp: < 6.2.4
- basic-ftp (npm): before 6.2.4

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-5pm8-86m8-9m6r> (exploit, web)
- <https://github.com/patrickjuchli/basic-ftp/commit/a22664a45d889f7d281e5bdd212c68c0a58d0ae6> (web)
- <https://github.com/patrickjuchli/basic-ftp/releases/tag/v6.2.4> (web)
- <https://github.com/patrickjuchli/basic-ftp> (package)

## Sources

- CVE List: [CVE-2026-126345](https://www.cve.org/CVERecord?id=CVE-2026-126345), CVE Terms of Use, modified 2026-11-16
- GitHub Advisory Database: [GHSA-5pm8-86m8-9m6r](https://github.com/advisories/GHSA-5pm8-86m8-9m6r), CC-BY-4.0, modified 2026-11-12
- NVD: [CVE-2026-126345](https://nvd.nist.gov/vuln/detail/CVE-2026-126345), Public domain, modified 2026-11-16

---

Page: https://cve.day/CVE-2026-126345 · Whole record: https://cve.day/CVE-2026-126345.json · Rebuilt by cve.day 2026-11-25T22:59:50.569Z
