Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessClient connects to attacker/compromised FTP server
-
DeliveryServer returns listing line with __proto__ fact
-
ExploitParser resolves to Object.prototype, throws TypeError
-
ExecutionNon-FTPError rejection escapes Client.list()
-
ImpactUnhandled rejection crashes 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 that the basic-ftp CLIENT perform a directory-listing-dependent operation (Client.list, downloadToDir, uploadFromDir via ensureDir/clearWorkingDir, clearWorkingDir, or removeDir) against a server the attacker controls: a malicious or compromised FTP server, or an on-path attacker modifying a plaintext (non-TLS) FTP session. No authentication to the target beyond the application's existing credentials and no user interaction are required, and no special server configuration is needed - the crafted line uses the standard MLSD path that is enabled via the common FEAT negotiation (a LIST-fallback MLSD-shaped line also works because the parser auto-detects format). LIMITING FACTORS: the attacker must be positioned as or in the path of the FTP server (not a generic remote attacker against a listening service); a TLS-protected (FTPS) session defeats the on-path variant; and whether the impact is a single rejected operation versus full process termination depends on whether the application leaves the promise rejection unhandled (process crash is the Node.js 15+ default only for unhandled rejections). The only complete fix per the vendor is updating to 6.2.4. |
| Impact | This is a moderate-severity, availability-only denial-of-service issue, and the signals are internally consistent rather than conflicting. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L, 5.3) describes a network-reachable, low-complexity, unauthenticated-on-the-attacker-side flaw with no confidentiality or integrity impact and limited availability impact - matching CWE-248 (uncaught exception). A complete, runnable proof-of-concept (both an isolated parser trigger and an end-to-end fake-FTP-server exploit with expected output) is published in the vendor GHSA advisory, so exploitability is practically demonstrated, not merely theoretical. However, the attack model is narrow: the victim is an FTP CLIENT, and the attacker must be the FTP server the client connects to (malicious or compromised) or an on-path attacker on a plaintext (non-TLS) session - this is not a server-side internet-facing listener an attacker can spray. No CISA KEV listing and no EPSS score are present in the input, so there is no evidence of active exploitation; the vuln.today decision label is 'this_month' (routine patch urgency, NOT act_now/emergency). The one genuine nuance to verify: the guaranteed impact is that the affected operation (Client.list and dependents) rejects, but full Node.js process termination only occurs if the application leaves that promise rejection unhandled (default Node 15+ behavior) - the vendor advisory rates Availability as High on that basis, whereas the official CVSS encodes A:L, so real-world impact ranges from a single failed FTP operation to a full service crash depending on the consuming application's error handling. |
| Exploit ScenarioDerived | An application using basic-ftp connects (e.g. for a scheduled download or sync) to an FTP server that is attacker-controlled, compromised, or whose plaintext session an on-path attacker can tamper with. The server returns a single directory-listing line whose fact name is '__proto__', which makes the MLSD parser resolve to Object.prototype and throw a TypeError that is not an FTPError, so it propagates out of Client.list(); if the caller did not wrap the call in try/catch, the unhandled rejection crashes the Node.js process. A full working proof-of-concept, including a fake FTP server that triggers this over the wire, is published in the vendor GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 12, 2026
A crafted MLSD directory-listing line can force the basic-ftp Node.js FTP client (versions through 6.2.3) to throw an uncaught TypeError inside Client.list() and every API built on it - downloadToDir, uploadFromDir, clearWorkingDir and removeDir - because a server-supplied fact name of "__proto__" resolves to Object.prototype instead of undefined and is then called as a function. The malicious input has to come from the FTP server the client connects to, or from an on-path attacker on a plaintext FTP session; a TLS-protected session defeats the on-path variant, and a crafted server is required for the direct variant, so this is not reachable by a generic remote attacker against a listening service. Impact is availability-only (the assessed vector is AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L, CVSS 5.3): a single rejected operation if the application handles the promise rejection, or full Node.js process termination under the default unhandled-rejection behavior in Node.js 15 and later if it does not; the vendor advisory includes a public proof-of-concept reproduction, and no confirmed active exploitation (CISA KEV) or public exploit weaponization is indicated.
RemediationAI
Vendor-released patch: 6.2.4 - upgrade basic-ftp to 6.2.4 or later (npm install basic-ftp@6.2.4), which replaces the unsafe dictionary lookup with an own-property check as shown in commit a22664a45d889f7d281e5bdd212c68c0a58d0ae6 and is documented in advisory GHSA-5pm8-86m8-9m6r and release v6.2.4; the vendor states that updating is the only complete fix. If an immediate upgrade is not possible, two partial mitigations reduce but do not eliminate the risk: wrap every call to list(), downloadToDir(), uploadFromDir(), clearWorkingDir() and removeDir() in try/catch (or attach a rejection handler) so the TypeError is contained to one rejected operation instead of terminating the process under Node.js 15+ default unhandled-rejection behavior - this does not stop the operation from failing; and require FTPS/TLS for all FTP connections (reject plaintext sessions in client options), which defeats the on-path attacker variant but provides no protection against a malicious or compromised FTP server the client is explicitly configured to trust. Neither workaround covers the full attack surface described in the advisory, so patching remains the recommended path.
Affected VersionsENISA
Affected Packages
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 parses FTP directory listings in src/parseListMLSD.ts. The parser keeps its per-fact callbacks in a plain object literal, factHandlersByName, and indexes it directly with the lowercased fact name taken from the server's listing line. Because the object literal inherits from Object.prototype, a bracket lookup for the key "__proto__" returns Object.prototype itself - a truthy, non-own, non-function value - so the if (!factHandler) continue guard never fires and the code calls Object.prototype as a function, raising TypeError: factHandler is not a function. This is the classic unguarded-dictionary-key pattern (CWE-1321 class) surfacing as an uncaught exception (CWE-248, the CWE assigned to the CVE). The throw happens synchronously inside parseList()'s .map() over listing lines, reached via Client._requestListWithCommand() from Client.list(); list()'s only recovery logic retries when the error instanceof FTPError, so a plain TypeError is rethrown immediately and the returned promise rejects. Every higher-level API that funnels through list() inherits the failure (downloadToDir/_downloadFromWorkingDir, uploadFromDir via ensureDir/clearWorkingDir, clearWorkingDir, removeDir). Only "__proto__" crashes; other Object.prototype names such as constructor, toString, hasOwnProperty, valueOf and __defineGetter__ resolve to real functions and are called harmlessly, which confirms the root cause is the missing own-property check rather than any single property name. The upstream commit a22664a replaces the lookup with Object.prototype.hasOwnProperty.call(factHandlersByName, key) plus a regression test covering __proto__, __PROTO__ and constructor facts. Note that the supplied tags describe an "Authentication Bypass"; neither the advisory text nor the assessed vector supports that, and the confirmed impact is availability-only.
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Network-reachable via a malicious/on-path FTP server with a single reliable crafted line (AV:N/AC:L), no attacker-side auth or interaction (PR:N/UI:N), availability-only and bounded because full crash depends on app error handling (A:L).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
basic-ftp is an FTP client for Node.js. Prior to 6.2.4, the MLSD directory-listing parser in src/parseListMLSD.ts uses untrusted fact names from the FTP server as keys in the plain-object factHandlersByName dictionary without checking that the resolved property is an own handler. A fact named __proto__ therefore resolves to Object.prototype, bypasses the missing-handler guard, and is called as though it were a function, producing a TypeError. The error propagates through Client.list() and APIs that depend on it because it is not an FTPError. A malicious or compromised FTP server, or an on-path attacker on a plaintext FTP session, can make the affected operation reject, and the Node.js process terminates under the default behavior in Node.js 15 and later only if the application leaves that rejection unhandled. This issue is fixed in version 6.2.4.
Blast Radius
ecosystem impact- 1 npm packages depend on basic-ftp (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 6.2.4.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
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
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
EUVD-2026-124723
GHSA-5pm8-86m8-9m6r
NVD
CVE.org
EPSS
Exploit-DB