Malicious Code Vulnerability in andreluiz Package: npm Exploit
Summary
MAL-2025-170880: Malicious code in andreluiz (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 andreluiz package is part of the npm ecosystem, primarily used for JavaScript development. It is often utilized in various applications for its functionalities. However, it has recently been identified as part of a malicious campaign that floods the npm registry with harmful packages, designed to inflate developer reputation scores through automated scripts.
Vulnerability Detail
The vulnerability in the andreluiz package stems from its association with a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This exploitation allows the package to continuously republish variants, polluting the npm registry and potentially compromising other projects that depend on it. The malicious payload is designed to execute without user consent, leading to severe ramifications for developers and their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall andreluiz
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, you can avoid using the andreluiz package altogether and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your project for any unauthorized changes to the package.json file.
Conclusion
The andreluiz package has been identified as a vector for malicious code that can compromise npm projects. It is essential for developers to take immediate action by uninstalling the package and monitoring their projects for any unauthorized changes. Utilizing tools like Vulert can help in maintaining the security of your applications.
See every vulnerability recorded for andreluiz →
FAQ
The andreluiz package is a JavaScript library available on npm, used in various applications for its functionalities.
The malicious code modifies your package.json file, potentially compromising your project's integrity and leading to the publication of unauthorized packages.
You should uninstall the andreluiz package immediately and check your project for any unauthorized changes.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.