CVE-2026-39983
HIGH EPSS 77.6%
Published Apr 9, 20262mo ago · Modified Jun 17, 20261w ago
8.6 CVSS 3.1
Published Apr 9, 2026 2mo ago
Last Modified Jun 17, 2026 1w ago
Description
basic-ftp is an FTP client for Node.js. Prior to 5.2.1, basic-ftp allows FTP command injection via CRLF sequences (\r\n) in file path parameters passed to high-level path APIs such as cd(), remove(), rename(), uploadFrom(), downloadTo(), list(), and removeDir(). The library's protectWhitespace() helper only handles leading spaces and returns other paths unchanged, while FtpContext.send() writes the resulting command string directly to the control socket with \r\n appended. This lets attacker-controlled path strings split one intended FTP command into multiple commands. This vulnerability is fixed in 5.2.1.
CVSS Details
Base Score
Exploitability
Impact
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality Low
Integrity High
Availability Low
Threat Intelligence
EPSS Exploit Probability
77.6% percentile
Exploit & Patch Status
Public Exploit Known
Patch Available
Weaknesses 1
CWE-93
Affected Products 1
| Vendor | Product | Version | Range |
|---|---|---|---|
| patrickjuchli | basic-ftp | * | <5.2.1 |
References 3
- github.com https://github.com/patrickjuchli/basic-ftp/commit/2ecc8e2c500c5234115f06fd1dbde1aa03d70f4b
- github.com https://github.com/patrickjuchli/basic-ftp/releases/tag/v5.2.1
- github.com https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-chqc-8p9q-pq6q
Remediation
- github.com https://github.com/patrickjuchli/basic-ftp/commit/2ecc8e2c500c5234115f06fd1dbde1aa03d70f4b