LiveActive security incident?Get immediate response
CVE Record

CVE-2026-27699: Basic FTP has Path Traversal Vulnerability in its downloadToDir() method

The `basic-ftp` FTP client library for Node.js contains a path traversal vulnerability (CWE-22) in versions prior to 5.2.0 in the `downloadToDir()` method. A malicious FTP server can send directory listings with filenames containing path traversal sequences (`../`) that cause files to be written outside the intended download directory. Version 5.2.0 patches the issue.

CriticalCVSS 9.1Not KEV-listedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

Applications using the Node.js basic-ftp library before 5.2.0 may write downloaded files outside the intended folder when connected to a malicious FTP server. This can overwrite application or system files, creating integrity and availability risk. The vendor advisory states version 5.2.0 patches the issue.

Executive priority

Treat as urgent for applications that download from FTP servers outside your direct control. The vulnerability can allow file overwrite through normal client behavior, and a patched version is available. Prioritize dependency updates in affected Node.js applications and validate where downloadToDir() is used.

Technical view

CVE-2026-27699 is a CWE-22 path traversal flaw in basic-ftp downloadToDir(). A malicious FTP server can return directory entries containing traversal sequences, causing client-side writes outside the chosen destination directory. Affected versions are before 5.2.0. CVSS is 9.1: network attack vector, low complexity, no privileges or user interaction required.

Likely exposure

Exposure is most likely in Node.js services, scripts, or automation that use basic-ftp downloadToDir() against FTP servers, especially untrusted or partner-managed servers. Systems that do not use basic-ftp, use version 5.2.0 or later, or do not call downloadToDir() are less likely exposed.

Exploitation context

The provided sources do not state active exploitation, and the CVE is not marked KEV. Exploitation requires the client application to connect to a malicious or compromised FTP server that can control directory listing filenames. Impact is file write outside the intended download directory, with high integrity and availability consequences.

Researcher notes

The key exposure condition is malicious server-controlled directory listings reaching downloadToDir(). Sources identify the vulnerable package and patched version, but do not provide evidence of exploitation in the wild. Avoid assuming broader FTP client impact beyond basic-ftp versions before 5.2.0.

Mitigation direction

  • Upgrade basic-ftp to version 5.2.0 or later.
  • Prioritize systems downloading from untrusted, external, or partner FTP servers.
  • Review vendor advisory and release notes for implementation-specific guidance.
  • Restrict FTP server trust where immediate upgrade is not possible.

Validation and detection

  • Check package manifests and lockfiles for basic-ftp versions below 5.2.0.
  • Identify code paths using downloadToDir().
  • Inventory applications connecting to externally controlled FTP servers.
  • Confirm deployed builds include basic-ftp 5.2.0 or later.
  • Review logs for unexpected file writes outside download directories.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-22: File access and web shell behavior lookup

File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

File access behavior lookup

The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-27699 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
9.1 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
9.1CVSS 3.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H3.95.2Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

9.1Critical
CVSS 3.1 vector shape for CVE-2026-27699Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
patrickjuchlibasic-ftp< 5.2.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.