NVD Vulnerability Detail
Search Exploit, PoC
CVE-2026-39983
Summary

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.

Publication Date April 10, 2026, 3:17 a.m.
Registration Date April 15, 2026, 11:34 a.m.
Last Update April 15, 2026, 5:07 a.m.
CVSS3.1 : HIGH
スコア 8.6
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃に必要な特権レベル(PR) 不要
利用者の関与(UI) 不要
影響の想定範囲(S) 変更なし
機密性への影響(C)
完全性への影響(I)
可用性への影響(A)
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:patrickjuchli:basic-ftp:*:*:*:*:*:node.js:*:* 5.2.1
Related information, measures and tools
Common Vulnerabilities List