CVE-2026-39983

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:patrickjuchli:basic-ftp:*:*:*:*:*:node.js:*:*

History

26 Oct 2026, 22:10

Type Values Removed Values Added
Summary
  • (es) basic-ftp es un cliente FTP para Node.js. Antes de la 5.2.1, basic-ftp permite la inyección de comandos FTP a través de secuencias CRLF (\r\n) en parámetros de ruta de archivo pasados a APIs de ruta de alto nivel como cd(), remove(), rename(), uploadFrom(), downloadTo(), list() y removeDir(). El ayudante protectWhitespace() de la biblioteca solo maneja espacios iniciales y devuelve otras rutas sin cambios, mientras que FtpContext.send() escribe la cadena de comando resultante directamente al socket de control con \r\n añadido. Esto permite que las cadenas de ruta controladas por el atacante dividan un comando FTP previsto en múltiples comandos. Esta vulnerabilidad se corrige en la 5.2.1.

Information

Published : 2026-04-09 18:17

Updated : 2026-10-26 22:10


NVD link : CVE-2026-39983

Mitre link : CVE-2026-39983

CVE.ORG link : CVE-2026-39983


JSON object : View

Products Affected

patrickjuchli

  • basic-ftp
CWE
CWE-93

Improper Neutralization of CRLF Sequences ('CRLF Injection')