CRLF injection in basic-ftp - CVE-2026-39983
Published: April 9, 2026
Vulnerability details
The vulnerability allows a remote attacker to inject arbitrary FTP commands.
The vulnerability exists due to improper neutralization of CRLF sequences in high-level path APIs in dist/Client.js and FtpContext.send() when processing attacker-controlled file path parameters. A remote attacker can supply a specially crafted path containing CRLF sequences to inject arbitrary FTP commands.
The issue affects methods such as cd(), remove(), rename(), uploadFrom(), downloadTo(), list(), and removeDir().
Affected software
MongoDB Enterprise Advanced with IBM
How to mitigate CVE-2026-39983
MongoDB Enterprise Advanced with IBM - update to 1.49.12