Malicious Code Detected in node-ftp Package - Security Alert
Summary
MAL-2025-27624: Malicious code in node-ftp (npm). Affected versions are not published. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The node-ftp package is a widely used library in the Node.js ecosystem that facilitates FTP (File Transfer Protocol) operations. It allows developers to easily upload, download, and manage files on FTP servers. However, the package has been identified to contain malicious code, posing significant security risks to applications that rely on it.
Vulnerability Detail
The vulnerability in the node-ftp package originates from the introduction of malicious code that can compromise the integrity and security of applications using this library. This malicious code can lead to unauthorized access, data breaches, or other harmful actions within the affected systems. The vulnerability affects all versions starting from 0, making it critical for users to take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall node-ftp
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, consider removing the node-ftp package from your project until a secure version is available. You can do this by executing the command: 'npm uninstall node-ftp'. Alternatively, you may explore other FTP libraries that do not have known vulnerabilities.
Conclusion
The discovery of malicious code in the node-ftp package poses a serious threat to applications utilizing this library. It is crucial for developers to take immediate action by updating or removing the package to safeguard their applications from potential security breaches.
See every vulnerability recorded for node-ftp →
FAQ
node-ftp is a Node.js library that allows developers to perform FTP operations such as uploading and downloading files to and from FTP servers.
The malicious code can compromise application security, potentially allowing unauthorized access or data breaches.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.
Yes, it is recommended to update the node-ftp package to the latest patched version to mitigate the vulnerability.
If immediate updates are not possible, consider removing the node-ftp package or using alternative libraries until a secure version is available.
Related vulnerabilities
Recent vulnerabilities recorded for node-ftp.