Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-39983: CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection') in patrickjuchli basic-ftp

0
High
VulnerabilityCVE-2026-39983cvecve-2026-39983cwe-93
Published: Thu Apr 09 2026 (04/09/2026, 17:05:46 UTC)
Source: CVE Database V5
Vendor/Project: patrickjuchli
Product: basic-ftp

Description

basic-ftp versions prior to 5. 2. 1 contain a CRLF injection vulnerability that allows attacker-controlled input in file path parameters to inject additional FTP commands. This occurs because the library does not properly neutralize CRLF sequences in these parameters, enabling command injection via high-level path APIs. The vulnerability is fixed in version 5. 2. 1.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/09/2026, 20:20:43 UTC

Technical Analysis

The basic-ftp Node.js client before version 5.2.1 is vulnerable to CRLF injection (CWE-93) through file path parameters passed to APIs like cd(), remove(), rename(), uploadFrom(), downloadTo(), list(), and removeDir(). The protectWhitespace() helper only handles leading spaces and does not sanitize CRLF sequences, allowing attacker input containing '\r\n' to split a single FTP command into multiple commands. These commands are sent directly to the FTP control socket with '\r\n' appended, enabling FTP command injection. This vulnerability is addressed in version 5.2.1.

Potential Impact

An attacker can inject arbitrary FTP commands by including CRLF sequences in file path parameters, potentially leading to unauthorized FTP operations. The CVSS 3.1 score is 8.6 (high severity) with network attack vector, low attack complexity, no privileges required, no user interaction, and impacts confidentiality (low), integrity (high), and availability (low).

Mitigation Recommendations

Upgrade basic-ftp to version 5.2.1 or later, where this CRLF injection vulnerability is fixed. No other mitigation is indicated or required.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-08T00:01:47.628Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69d806d51cc7ad14da15a66c

Added to database: 4/9/2026, 8:06:45 PM

Last enriched: 4/9/2026, 8:20:43 PM

Last updated: 4/9/2026, 10:31:28 PM

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses