CVE-2026-39983: CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection') in patrickjuchli basic-ftp
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 Analysis
Technical Summary
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.
CVE-2026-39983: CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection') in patrickjuchli 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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.