basic-ftp: Uncaught exception crashes the Node.js process when a password (or resumed-download path) contains CR/LF
Affects basic-ftpSource GCVE Database
Not known to be exploited · CVSS 5.9 Medium : upgrade to 6.2.3 when convenient.
Data as of 12 Nov 2026, 23:21 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 5.9 |
|---|
- Patch
- Available – fixed in 6.2.3
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 12 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 12 Nov 2026.
What to do
Upgrade basic-ftp to 6.2.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmbasic-ftp | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in basic-ftp version 6.2.3. Users should upgrade to this version or later to prevent process crashes from control characters in passwords or resumed-download paths. The fix adds try/catch blocks around event handlers to catch exceptions and reject the operation gracefully. Additionally, input validation should be performed on passwords and remote paths before any FTP I/O to reject invalid control characters early. Applications should avoid passing untrusted input directly as FTP commands without sanitization. If upgrading is not immediately possible, implementing a global process.on('uncaughtException') handler may prevent process termination but is not a full mitigation.
Description
A vulnerability in the basic-ftp Node.js library allows an uncaught exception to crash the entire Node.js process when a password or resumed-download path contains carriage return (CR), line feed (LF), or null (NUL) characters. This occurs because the library throws an error on detecting these control characters during FTP command sending, but the exception is not caught in certain asynchronous event handlers, leading to process termination. The flaw enables denial of service by crashing applications that accept untrusted input as FTP passwords or remote paths. The issue is fixed in version 6.2.3.
References
- github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-r4jh-29pc-gfqr (opens in a new tab)
- github.com/patrickjuchli/basic-ftp/commit/0495b906bdf891e68806721b07b333dba65ec88e (opens in a new tab)
- github.com/patrickjuchli/basic-ftp (opens in a new tab)
- github.com/patrickjuchli/basic-ftp/releases/tag/v6.2.3 (opens in a new tab)