Malicious Code Injection in kresna-mendut49-ruro: A Threat to npm Packages
Summary
MAL-2025-104874: Malicious code in kresna-mendut49-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 'kresna-mendut49-ruro' is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to generate and publish derivative packages with randomized names, which can inflate developer reputation scores for token rewards. Its functionality is compromised due to the presence of malicious code that alters package metadata and repackages it, posing a significant risk to users and the integrity of the npm registry.
Vulnerability Detail
The vulnerability originates from malicious code embedded within the 'kresna-mendut49-ruro' package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, which leads to the continuous republishing of variants. This behavior not only pollutes the npm registry but also undermines the trustworthiness of the ecosystem, potentially affecting other packages and developers relying on npm for legitimate software.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall kresna-mendut49-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 'kresna-mendut49-ruro' package and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your project for vulnerabilities using tools like Vulert, which analyzes your package-lock.json file for real-time alerts on open-source vulnerabilities.
Conclusion
The 'kresna-mendut49-ruro' package poses a significant risk due to its malicious code that alters package metadata and repackages it. It is crucial for developers to remove this package and monitor their projects for vulnerabilities to maintain the integrity of their applications and the npm ecosystem.
See every vulnerability recorded for kresna-mendut49-ruro →
FAQ
It is an npm package associated with a token reward campaign that has been compromised with malicious code.
The malicious code modifies package metadata, potentially leading to the pollution of the npm registry and affecting other packages.
You should uninstall the package immediately and monitor your project for vulnerabilities.
You can use Vulert, which allows you to check your package-lock.json for vulnerabilities without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without signing up.