basic-ftp@6.0.0

FTP client for Node.js, supports FTPS over TLS, IPv6, Async/Await, and Typescript.

  • latest version

    6.2.3

  • latest non vulnerable version

  • first published

    8 years ago

  • latest version published

    4 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the basic-ftp package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Regular Expression Denial of Service (ReDoS)

    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 Regular Expression Denial of Service (ReDoS) via unanchored regular expressions in Client.list() (specifically in parseListDOS.ts and parseListUnix.ts). The regex patterns used to parse FTP directory listings lack anchoring and use unbounded quantifiers, causing catastrophic backtracking when a malicious FTP server returns a long line that cannot be matched. A single such line triggers O(n²) CPU work per character, allowing a server to block the Node.js event loop indefinitely.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade basic-ftp to version 6.2.1 or higher.

    <6.2.1