Malicious Code Injection in thundering_gerbil-tool: npm Package Vulnerability
Summary
MAL-2025-109653: Malicious code in thundering_gerbil-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
thundering_gerbil-tool is an npm package that is part of the tea.xyz token reward campaign. It is designed to facilitate the generation and publication of derivative packages. However, it has been compromised to include malicious scripts that can alter package metadata and inflate developer reputation scores.
Vulnerability Detail
The vulnerability stems from the inclusion of malicious code within the thundering_gerbil-tool package. This code is designed to modify the package.json file by removing private flags, changing version numbers, and generating random package names. The malicious payload continuously republishes these variants, leading to pollution of the npm registry and potential exploitation of developers' reputations. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which has been associated with a flood of compromised npm packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall thundering_gerbil-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 avoid using the thundering_gerbil-tool package altogether and look for alternative packages that provide similar functionality without the associated risks.
Conclusion
The thundering_gerbil-tool package has been identified as containing malicious code that can compromise your project's integrity. It is crucial to remove this package and monitor your dependencies for any similar vulnerabilities. Utilizing tools like Vulert can help maintain the security of your open-source projects.
See every vulnerability recorded for thundering_gerbil-tool →
FAQ
thundering_gerbil-tool is an npm package involved in the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The malicious code modifies your package.json file, removes private flags, and can lead to the publication of unauthorized package variants, potentially harming your project's reputation.
You should uninstall the package immediately using 'npm uninstall thundering_gerbil-tool' and check for any dependencies that may be affected.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just package-lock.json. You can check your application for vulnerabilities without any signup at the Vulert playground.
Regularly audit your npm packages, keep them updated, and use tools like Vulert to monitor for vulnerabilities in real-time.