Skip to main content

basic-ftp CVE-2026-126346

| EUVDEUVD-2026-124724 MEDIUM
Uncaught Exception (CWE-248)
2026-11-12 GitHub_M GHSA-r4jh-29pc-gfqr
5.9
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit password/path containing CR/LF
  2. Delivery
    Server returns routine 331 or 350
  3. Exploit
    Response handler calls FTPContext.send()
  4. Execution
    send() throws inside socket data event
  5. Impact
    Uncaught exception terminates Node.js process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Exception handling completeness
Exploitation Conditions

Exploitation requires the embedding application to pass attacker-influenced input into one of two sinks: the FTP password via Client.login()/access(), or the remote path of a resumed download via downloadTo() with startAt > 0 (which issues REST then RETR). The attacker-controlled string must contain a carriage return, line feed, or NUL byte, and the FTP server must send its ordinary 331 (to USER) or 350 (to REST) response - no special or malicious server behaviour and no authentication to the FTP server are needed. Limiting factors: only deployments that route untrusted strings into those exact parameters are affected (apps with hardcoded credentials/paths are not), and an application that installs a global process.on('uncaughtException') handler survives the crash. The flaw is triggered reliably and deterministically once these conditions hold.

Impact

Signals are mixed and point to a real-but-bounded availability issue rather than a top-tier emergency. The input CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H, 5.9 Medium) scores only availability impact - no confidentiality or integrity loss - which matches CWE-248/CWE-755: an uncaught exception that terminates the whole Node.js process. KEV status is NO (no confirmed active exploitation), and no EPSS score was supplied, so exploitation probability cannot be quantified from this data - state that gap explicitly. Against those, a fully functional, author-tested proof-of-concept is published inside the GHSA advisory (tested on Node.js v22.22.0 against basic-ftp 6.2.2), so trigger reliability is high once the precondition is met. I disagree with the input's AC:H: the advisory shows the crash is deterministic - any normal FTP server that answers 331 to USER (or 350 to REST) triggers it, with no race, timing or attacker-uncontrolled element described - so the real gating factor is a deployment precondition (the application must route attacker-influenced strings into the FTP password or into the remote path of a resumed download), not attack complexity. The vuln.today Decision label is this_month, consistent with a widely-used library DoS that is not under active exploitation. Net: prioritize patching for any service that lets untrusted input reach those parameters, but this is not an RCE or data-exposure event and the Command Injection tag is wrong - the CRLF guard still blocks injection.

Exploit ScenarioDerived

A web app or backup/file-transfer service lets users supply their own FTP credentials or remote paths and passes them to basic-ftp. An attacker submits a password (or resumed-download path) such as "x\r\nDELE important"; after the FTP server returns its routine 331 (or 350) response, the client's response handler calls send(), which throws on the control characters inside the socket data event where nothing can catch it. A working PoC in the GHSA advisory confirms the uncaught exception crashes the entire Node.js process and every other client it serves, and neither try/catch nor .catch() around access()/downloadTo() prevents it.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 1.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 12, 2026

An uncaught exception in the basic-ftp Node.js FTP client (all versions prior to 6.2.3) lets an attacker-influenced string crash the entire Node.js process: FTPContext.send() throws when a command contains CR, LF or NUL, and two call sites invoke send() from inside the control socket's synchronous data event handler where no try/catch exists, so the throw becomes an uncaughtException instead of a promise rejection. The affected sinks are the password passed to Client.login()/access() (checked only after the server's 331 reply to USER) and the remote path of a resumed download via downloadTo() with startAt > 0 (sent as RETR after the 350 reply to REST). Impact is availability-only and bounded: only applications that route untrusted input into those exact parameters are exposed, the CRLF guard still blocks command injection, and a global process.on('uncaughtException') handler keeps the process alive; the advisory publishes a tested proof-of-concept using a minimal mock FTP server, and there is no KEV entry or other indication of active exploitation.

RemediationAI

Vendor-released patch: upgrade to basic-ftp 6.2.3 (e.g. npm install basic-ftp@6.2.3, or pin the dependency) - the release adds a try/catch around the response handler invocation in FTPContext._passToHandler that rejects the pending task and calls closeWithError(), wraps the send() call inside the handler chain, and validates input early; it also stops the rejection message from including the password. Confirm the upgrade by verifying the resolved version is 6.2.3 or later (affected range <= 6.2.2) per https://github.com/patrickjuchli/basic-ftp/releases/tag/v6.2.3 and GHSA-r4jh-29pc-gfqr. If upgrading immediately is not possible, the actionable compensating controls are: (1) validate and reject any password or resumed-download remote path containing \r, \n or \0 before it reaches the library - cheap and complete for these two sinks, but it pushes the burden onto every call site and will not cover paths added by future callers; (2) install a global process.on('uncaughtException') handler - this keeps the Node.js process (and every other client it serves) alive, at the cost of continuing with an FTP session whose state is unknown, so the affected client/socket must be discarded and ideally the work item retried; (3) run FTP operations in a separate worker/child process with a restart supervisor so a crash does not take down the whole service, at the cost of added process overhead. Note the trigger requires the FTP server's ordinary 331 or 350 response, so no server-side filtering mitigates it.

Affected VersionsENISA

basic-ftp < 6.2.3

Affected Packages

npm basic-ftp fix: 6.2.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

basic-ftp drives an FTP control socket: bytes arriving on socket.on('data') are passed through _onControlSocketData to _passToHandler, which synchronously invokes the pending task's responseHandler. Commands reach the wire through FTPContext.send(), which enforces a guard (CWE-185-adjacent input validation) rejecting any command containing \r, \n or \0 - this guard is why the flaw is not command injection. Normally a throw inside send() lands inside a Promise executor and becomes a rejection, but in Client.login() the second half of the exchange (PASS <password>) is emitted from the response handler for the 331 reply to USER, and in downloadTo() the RETR <remotePath> command is emitted from the handler for the 350 reply to REST when resuming (startAt > 0). Both run on the socket data event stack, outside any exception boundary, so the throw propagates as an uncaughtException (CWE-248), also characterized as improper check/handling of exceptional conditions (CWE-755). Because the fault occurs during event dispatch, try/catch or .catch() around client.access()/downloadTo() cannot intercept it; the session state is left indeterminate. Node.js and the npm packaging chain are the platform; the affected artifact is the npm package basic-ftp (CPE cpe:2.3:a:patrickjuchli:basic-ftp:*:*:*:*:*:*:*:*). The same commit additionally stops the rejection message from echoing the password (a credential-exposure side issue) and keeps the client usable after a guard rejection.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Crash is deterministic once an app routes attacker-controlled input to PASS/RETR and the server sends its normal 331/350, so AC:L and PR:N; only availability is impacted via process termination.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 5.9 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

1
Patch available
Nov 12, 2026 - 22:02 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
1.7%
Top 23% exploitable
Prevalence
Medium
popular Node.js FTP client library, but FTP usage itself is niche
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 1.7%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: +2
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy