VULNERABILITY INTELLIGENCE
CVE-2026-39983
CVSS score8.6 HIGH
EPSS probability2.19%
CISA KEVNot currently listed
Published2026-04-09
Last modified2026-10-26
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
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.
Weakness classification
- security-advisories@github.com: CWE-93
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c: CWE-93
Primary references
- security-advisories@github.com — Patch
- security-advisories@github.com — Product, Release Notes
- security-advisories@github.com — Exploit, Mitigation, Vendor Advisory
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- 134c704f-9b21-4f2e-91b3-4a467353bcc0 — Exploit, Mitigation, Vendor Advisory
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c