๐Ÿ” CVE Alert

CVE-2026-39983

HIGH 8.6

FTP Command Injection via CRLF in basic-ftp

CVSS Score
8.6
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-93
Vendor patrickjuchli
Product basic-ftp
Published Apr 9, 2026
Last Updated Apr 9, 2026
Stay Ahead of the Next One

Get instant alerts for patrickjuchli basic-ftp

Be the first to know when new high vulnerabilities affecting patrickjuchli basic-ftp are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

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

Affected Versions

patrickjuchli / basic-ftp
< 5.2.1

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-chqc-8p9q-pq6q github.com: https://github.com/patrickjuchli/basic-ftp/commit/2ecc8e2c500c5234115f06fd1dbde1aa03d70f4b github.com: https://github.com/patrickjuchli/basic-ftp/releases/tag/v5.2.1