Malicious Code Injection in erwin-kolak42-ruro: A Threat to npm Users
Summary
MAL-2025-102210: Malicious code in erwin-kolak42-ruro (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 package 'erwin-kolak42-ruro' is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that aims to exploit npm's publishing system. It is designed to generate and publish derivative packages with randomized names, which can lead to reputation inflation for certain token rewards. The malicious nature of this package poses a significant risk to developers and users relying on npm for secure package management.
Vulnerability Detail
The vulnerability in 'erwin-kolak42-ruro' originates from its involvement in the tea.xyz token reward campaign. The package contains scripts that automatically modify the package.json file to remove private flags, change version numbers, and generate random package names. This behavior not only pollutes the npm registry but also compromises the integrity of the packages published under these names. The ramifications include potential security risks for users who may unknowingly install these malicious packages, leading to further exploitation or data breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall erwin-kolak42-ruro
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-kolak42-ruro' package and monitor your project for any unintended dependencies that may include it. Use the following command to check for outdated packages: 'npm outdated'.
Conclusion
The 'erwin-kolak42-ruro' package poses a significant threat due to its malicious code designed to manipulate the npm registry. It is crucial for developers to take immediate action by removing this package and monitoring their projects for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for erwin-kolak42-ruro →
FAQ
The vulnerability involves malicious code that modifies package.json files and publishes random derivative packages, compromising the integrity of the npm registry.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Check your application against this vulnerability using the Vulert playground at Vulert Scanner.
You should uninstall the package immediately using the command 'npm uninstall erwin-kolak42-ruro' and review your other dependencies for any related vulnerabilities.
While specific exploits have not been detailed, the malicious nature of the package suggests potential risks such as data breaches and unauthorized access to systems.
Regularly audit your dependencies, use tools like Vulert for real-time monitoring, and stay updated on security advisories related to the packages you use.