Skip to main content
Public proof of conceptFix available

CVE-2026-39983

A public proof of concept exists; no exploitation attested.

  • Published2026-04-09
  • Fixed in5.2.1
  • WeaknessCWE-93

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2026-04-0918:17CVE publishedNVD

Versions per branch

NVD · OSV
Patrickjuchli basic-ftp
BranchAffectedFixed in
5.2< 5.2.15.2.1
5.2≥ 5.2.0, < 5.2.15.2.1

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • patrickjuchli basic-ftp
    Affected
    • = < 5.2.1no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-04-09

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • @rootio/basic-ftpRoot:npmall versions · fixed in 5.2.0-root.io.1
  • @rootio/basic-ftpRoot:npmall versions · fixed in 5.2.0-root.io.2
  • @rootio/basic-ftpRoot:npmall versions · fixed in 5.2.0-root.io.3
  • basic-ftpTuxCare:npmfrom 5.2.0-tuxcare.0 · fixed in 5.2.0-tuxcare.2
  • code-serverWolfiall versions · fixed in 4.112.0-r3
  • code-serverChainguardall versions · fixed in 4.112.0-r3
  • cube-1.7MinimOSall versions · fixed in 1.7.38-r0
  • kibana-8.17Chainguardall versions · fixed in 8.17.10-r17and 2 other packages

30 more package ranges on OSV.dev

Vendor advisories

  • CVE-2026-39983 Red Hat Product Security2 products fixed · 1 known affected

    basic-ftp: basic-ftp: Command injection via CRLF sequences in file path parameters

    redhat-user-workloads/ansible-plugins as a component of Self-service automation portal 2

  • RHSA-2026:13826 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Developer Hub 1.9.4 release.

  • RHSA-2026:9742 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Developer Hub 1.8.6 release.

Full record on NVD

Fix

  1. Update Patrickjuchli basic-ftp to 5.2.1
  2. Vendor fix Red Hat Product Security RHSA-2026:13826 · 1 productFor more about Red Hat Developer Hub, see References links
  3. Workaround from the vendor Red Hat Product Security RHSA-2026:13826 · 3 productsMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
  4. No fix available, says the vendor Red Hat Product Security CVE-2026-39983 · 1 productAffected

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
Published
2026-04-09
Last modified
2026-10-26
NVD status
Modified
GitHub advisory
GHSA-chqc-8p9q-pq6q

Frequently asked questions

What is 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.

Is CVE-2026-39983 actively exploited?

A proof-of-concept exploit exists for CVE-2026-39983, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2026-39983?

CVE-2026-39983 has a CVSS v3 base score of 8.6 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L.

Running basic-ftp? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record