Intel

AIKIDO-2026-221764

basic-ftp is vulnerable to Regular Expression Denial of Service (ReDoS)

Regular Expression Denial of Service (ReDoS)GHSA-5rfr-xx34-2xxv Published Oct 8, 2026

53

Medium Risk

This Affects:

JSbasic-ftp
0.0.1 - 6.2.1
Fixed in 6.2.2
Are you affected? Scan for Free

TL;DR

basic-ftp's MLSD directory listing detector and PASV response parser use regular expressions that backtrack quadratically on crafted FTP server input. A listing line of repeated = characters with no ;, or a 227 PASV reply with a long run of digits and no commas, makes the regex engine retry every split point and blocks the Node.js event loop for seconds. Both inputs come directly from the connected FTP server, so a malicious or compromised server can freeze the client application during list() or a passive mode transfer. The fix excludes = from MLSD fact names and adds a lookbehind in the PASV parser so neither regex retries at every character.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you connect to an untrusted or compromised FTP server.

Background info

basic-ftp is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 0.0.1 - 6.2.1.

How to fix this

Upgrade the basic-ftp library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform