Malicious Code Injection in erwin-ragi88-sluey Package
Summary
MAL-2025-133225: Malicious code in erwin-ragi88-sluey (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 erwin-ragi88-sluey package is part of the npm ecosystem, often utilized for various JavaScript applications. However, it has been identified as part of a malicious campaign that floods the npm registry with harmful packages. This package is designed to manipulate the npm registry by generating and publishing derivative packages with altered metadata, thereby inflating developer reputation scores for token rewards.
Vulnerability Detail
The vulnerability originates from the erwin-ragi88-sluey package, which is linked to a broader malicious campaign targeting npm. It contains scripts that automatically modify the package.json file, removing private flags and changing version numbers. Additionally, it generates random package names, contributing to the pollution of the npm registry. The ramifications include potential security risks for applications relying on this package, as it may lead to the execution of unwanted code and compromise the integrity of the software.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall erwin-ragi88-sluey
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 erwin-ragi88-sluey package and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your package-lock.json file for any unauthorized changes.
Conclusion
The erwin-ragi88-sluey package poses significant security risks due to its malicious code injection capabilities. It is crucial for developers to remove this package and monitor their applications for any unauthorized changes. Utilizing tools like Vulert can help in maintaining the security of your software.
See every vulnerability recorded for erwin-ragi88-sluey →
FAQ
It is an npm package that has been identified as part of a malicious campaign to manipulate the npm registry.
The vulnerability can lead to the execution of malicious code, compromising the security and integrity of your application.
You should uninstall the erwin-ragi88-sluey package immediately and monitor your project for any unauthorized changes.
Yes, you can use Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time. You can check your application using the Vulert playground without any signup.
Regularly audit your dependencies, keep them updated, and use tools like Vulert to monitor for vulnerabilities.