Malicious Code Injection in dewanto-gandul87-ruro Package
Summary
MAL-2025-101422: Malicious code in dewanto-gandul87-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 dewanto-gandul87-ruro package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. However, it has been identified as containing malicious scripts that compromise its integrity.
Vulnerability Detail
The vulnerability originates from the package's malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising other projects that depend on these packages. The malicious scripts are typically named auto.js, autopublish.js, autopublish2.js, and autopublish3.js.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall dewanto-gandul87-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 dewanto-gandul87-ruro package and replace it with a similar package that does not exhibit malicious behavior. Always verify the integrity of packages before installation.
Conclusion
The dewanto-gandul87-ruro package has been identified as containing malicious code that compromises the integrity of projects using it. It is crucial to remove this package and monitor your dependencies for vulnerabilities to maintain the security of your applications.
See every vulnerability recorded for dewanto-gandul87-ruro →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The malicious code can alter your package.json file, leading to potential security risks and pollution of the npm registry.
You should uninstall the package immediately using the command: npm uninstall dewanto-gandul87-ruro.
No patches are available for this specific package; the recommended action is to remove it from your project.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json. You can check your application for vulnerabilities using the Vulert playground at Vulert Scanner without any signup.