Malicious Code Injection in iwan-klanting58-ruro: A Threat to npm Users
Summary
MAL-2025-104451: Malicious code in iwan-klanting58-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 'iwan-klanting58-ruro' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is linked to the tea.xyz token reward campaign, notorious for flooding npm with malicious packages. Its primary function is to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. However, this functionality has been compromised, leading to significant security concerns.
Vulnerability Detail
The vulnerability in 'iwan-klanting58-ruro' originates from its design to include autopublish scripts that modify the package.json file. These modifications remove private flags, alter version numbers, and generate random package names, thereby polluting the npm registry. The malicious payload can lead to unauthorized access and manipulation of the package, potentially affecting applications that rely on it. The continuous republishing of variants can also degrade the integrity of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall iwan-klanting58-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 remove the 'iwan-klanting58-ruro' package from your project by executing the command: 'npm uninstall iwan-klanting58-ruro'. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The 'iwan-klanting58-ruro' package poses a significant security risk due to its malicious code that modifies essential package configurations. Users are advised to update or uninstall the package to safeguard their applications. Utilizing tools like Vulert can help monitor for such vulnerabilities effectively.
See every vulnerability recorded for iwan-klanting58-ruro →
FAQ
The vulnerability involves malicious code that modifies package.json to remove private flags and generates random package names, leading to potential security risks.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
As a temporary measure, you can uninstall the package to prevent any malicious code from executing in your application.
While specific exploits have not been detailed, the nature of the vulnerability allows for unauthorized modifications and potential data breaches.
This vulnerability can lead to the pollution of the npm registry, affecting the integrity and trustworthiness of packages within the ecosystem.