# CVE-2026-126346: basic-ftp: Uncaught exception crashes the Node.js process when a password (or resumed-download path) contains CR/LF

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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): 1.67%, higher than 77% of CVEs (2026-12-01)
- Published: 2026-11-12T21:42:09.509Z
- Modified: 2026-11-13T17:17:25.167Z
- Also known as: GHSA-r4jh-29pc-gfqr
- Weaknesses: CWE-248, CWE-755
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

basic-ftp is an FTP client for Node.js. Prior to 6.2.3, FTPContext.send() throws when a command contains carriage return, line feed, or NUL characters, but calls made from response handlers execute synchronously inside the control socket's data event without an exception boundary. In Client.login(), an attacker-influenced password reaches the PASS command after a server sends a 331 response, and in a resumed download an attacker-influenced remote path reaches the RETR command after a 350 response to REST. The resulting exception does not reject client.access() or downloadTo(), escapes ordinary promise error handling, and terminates the Node.js process, while the validation guard still prevents command injection. This issue is fixed in version 6.2.3.

(As written by CVE List.)

## Affected

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

## Every score

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

## References

- <https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-r4jh-29pc-gfqr> (web)
- <https://github.com/patrickjuchli/basic-ftp/commit/0495b906bdf891e68806721b07b333dba65ec88e> (web)
- <https://github.com/patrickjuchli/basic-ftp/releases/tag/v6.2.3> (web)
- <https://github.com/patrickjuchli/basic-ftp> (package)

## Sources

- CVE List: [CVE-2026-126346](https://www.cve.org/CVERecord?id=CVE-2026-126346), CVE Terms of Use, modified 2026-11-13
- GitHub Advisory Database: [GHSA-r4jh-29pc-gfqr](https://github.com/advisories/GHSA-r4jh-29pc-gfqr), CC-BY-4.0, modified 2026-11-12
- NVD: [CVE-2026-126346](https://nvd.nist.gov/vuln/detail/CVE-2026-126346), Public domain, modified 2026-11-13

---

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