CVEfocus › CVE database › CVE-2026-39983

CVE-2026-39983FTP Command Injection via CRLF in basic-ftp

CVSS 8.6 HighEPSS 2.9% (higher than 88% of CVEs)Published 2026-04-09Updated 2026-07-15Assigner: GitHub_M

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-93

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
2Fix pending
2Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-proxy-agentsFix pendingUBUNTU-CVE-2026-39983
Ubuntu 26.04node-proxy-agentsUnder investigationUBUNTU-CVE-2026-39983
Ubuntu 25.10node-proxy-agentsWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-39983
Ubuntu 24.04node-proxy-agentsUnder investigationUBUNTU-CVE-2026-39983
Debian 14node-proxy-agentsFixed0~2025070717+~cs15.3.7-1DEBIAN-CVE-2026-39983
Debian 13node-proxy-agentsFix pendingDEBIAN-CVE-2026-39983
npm librarybasic-ftpFixed5.2.1GHSA-chqc-8p9q-pq6q

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.