Malicious Code Injection in garduribut-tool: npm Package Vulnerability
Summary
MAL-2025-103059: Malicious code in garduribut-tool (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 garduribut-tool is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate token rewards for developers by generating and publishing derivative packages. However, it has been identified as containing malicious code that compromises its integrity and the security of the npm ecosystem.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious scripts in the garduribut-tool package. These scripts are designed to modify the package.json file by removing private flags, changing version numbers, and generating random package names. This behavior not only inflates developer reputation scores but also leads to the pollution of the npm registry with potentially harmful packages. The ramifications include the risk of developers unknowingly using compromised packages, which can lead to further security issues in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall garduribut-tool
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 garduribut-tool package from your project if it is not essential. Use the following command to uninstall it: npm uninstall garduribut-tool. Additionally, consider using alternative packages that do not have known vulnerabilities.
Conclusion
The garduribut-tool package has been identified as containing malicious code that compromises its integrity and the security of the npm ecosystem. It is essential to update or remove this package to protect your projects from potential security threats. Utilizing tools like Vulert can help monitor your application for vulnerabilities effectively.
See every vulnerability recorded for garduribut-tool →
FAQ
The garduribut-tool package is part of a token reward campaign that generates and publishes derivative npm packages.
The malicious code modifies your package.json, potentially exposing your project to security risks and polluting the npm registry.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
If you cannot update the package, consider removing it from your project or using a different package that provides similar functionality without the security risks.
You can visit the official npm website or security advisories for detailed information on package vulnerabilities and best practices.