Skip to main content
CVE-2026-126346VulnerabilityPublished

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

Affects basic-ftpSource GCVE Database

0
Compare
Authoritative record:CVE-2026-126346· Medium 5.9

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

CVSS 3.1 base score
5.9Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.15.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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 12 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
npmbasic-ftpAffected
  • <6.2.3
Fixed in
  • 6.2.3

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

Community reviews

Loading reviews…