Malicious Code Detected in Antfiles Package - Security Alert
Summary
MAL-2025-14599: Malicious code in antfiles (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 'antfiles' package is an npm library designed for automating file management tasks in JavaScript applications. It provides functionalities such as file manipulation, organization, and processing. However, it has been identified to contain malicious code that poses a significant security risk to users and their applications.
Vulnerability Detail
The vulnerability in the 'antfiles' package originates from the inclusion of malicious code that can compromise the security of applications utilizing this package. This malicious code may lead to unauthorized access, data breaches, or other harmful actions within the affected systems. Users of the package are at risk of exploitation due to this vulnerability, which has been classified under the identifier MAL-2025-14599.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall antfiles
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, users can remove the 'antfiles' package from their project until a secure version is released. This can be done by executing the command: 'npm uninstall antfiles'.
Conclusion
The discovery of malicious code in the 'antfiles' package poses a serious threat to users and their applications. It is crucial to take immediate action by updating or removing the package to safeguard against potential exploits. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for antfiles →
FAQ
The malicious code is designed to exploit vulnerabilities in applications, potentially leading to unauthorized access and data breaches.
You can use Vulert to monitor and alert for open-source vulnerabilities. Visit Vulert Scanner to check if your application is affected without needing to sign up.
If an immediate update is not possible, consider removing the package from your project as a temporary measure to mitigate risk.
Regularly monitor your dependencies using tools like Vulert, which can alert you to vulnerabilities in your package-lock.json file.
Detailed information can be found in the vulnerability report at https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/antfiles/MAL-2025-14599.json.