CVE-2026-126346: basic-ftp: Uncaught exception crashes the Node.js process when a password (or resumed-download path) contains CR/LF
Vulnerability summary
CVE-2026-126346 is a medium (CVSS 5.9) Uncaught Exception vulnerability in patrickjuchli basic-ftp. EPSS estimates a 1.67% chance of exploitation in the next 30 days, higher than 77.6% of scored vulnerabilities.
Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 12-11-2026PublishedVulnerability first disclosed.
- 13-11-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- NVDNIST5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · NpmEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · WolfiEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.67%
Chance of exploitation in the next 30 days
Percentile
78%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard24 products
- code-server< 4.145.2-r1 | All versions (No fix recorded)
- gemini-cliAll versions (No fix recorded) | < 0.68.0-r1
- opensearch-dashboards-2-fips-security-dashboards-pluginAll versions (No fix recorded) | < 2.19.7-r9
- opensearch-dashboards-2-security-dashboards-pluginAll versions (No fix recorded) | < 2.19.7-r9
- opensearch-dashboards-3-fips-security-dashboards-pluginAll versions (No fix recorded) | < 3.9.0-r10
Wolfi2 products
- code-server< 4.145.2-r1 | All versions (No fix recorded)
- opensearch-dashboards-3-security-dashboards-pluginAll versions (No fix recorded) | < 3.9.0-r12
Debian1 product
- node-proxy-agentsAll versions (No fix recorded)
Npm1 product
- basic-ftp< 6.2.3
Patrickjuchli1 product
- basic-ftp< 6.2.3
5 vendors · 29 products
References
7 links- github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-r4jh-29pc-gfqrX Refsource CONFIRMWEBAdvisory
- github.com/patrickjuchli/basic-ftp/commit/0495b906bdf891e68806721b07b333dba65ec88eX Refsource MISCWEBFIX