CRLF Injection Affecting basic-ftp package, versions <5.2.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about CRLF Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-BASICFTP-15989098
  • published12 Apr 2026
  • disclosed10 Apr 2026
  • creditoffset

Introduced: 10 Apr 2026

New CVE NOT AVAILABLE CWE-93  (opens in a new tab)

How to fix?

Upgrade basic-ftp to version 5.2.2 or higher.

Overview

basic-ftp is a FTP client for Node.js, supports FTPS over TLS, IPv6, Async/Await, and Typescript.

Affected versions of this package are vulnerable to CRLF Injection via the login and _openDir methods. An attacker can execute arbitrary FTP commands by injecting control characters into credentials or directory names sent to the FTP server.

Note: This vulnerability extends the incomplete fix for CVE-2026-39983.

CVSS Base Scores

version 4.0
version 3.1