CVE-2026-39983: basic-ftp is an FTP client for Node.js
CVE-2026-39983 is a high-severity flaw (CVSS 8.6) affecting basic-ftp. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- High severity
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 8.6 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 2.2% (top 18%) |
| CISA exploited list | No |
| Weakness | CWE-93 |
| Published | 2026-04-09 |
| Last modified | 2026-10-26 |
Last updated 2026-10-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: zebbernCVE/CVE-2026-39983 (0 stars)
- Write-up: github.com/patrickjuchli/basic-ftp/security/advisories/GHSA-chqc-8p9q-pq6q
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-39983?
basic-ftp: upgrade to 5.2.1. Exact commands for each OS are on this page.
Is CVE-2026-39983 being exploited?
CVE-2026-39983 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-39983 affect?
CVE-2026-39983 affects basic-ftp. Severity is high (CVSS 8.6). 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(), li
How urgent is CVE-2026-39983?
Priority 61/100. High severity; Public exploit reference; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2026-41324 HIGH 7.5 UPGRADE basic-ftp is an FTP client for Node.js