Malicious Code Injection in thoughtless_whale-gooddev Package
Summary
MAL-2025-109649: Malicious code in thoughtless_whale-gooddev (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 thoughtless_whale-gooddev package is part of a broader ecosystem that has been associated with the tea.xyz token reward campaign. This npm package is designed to facilitate certain functionalities within the npm registry but has been compromised to serve malicious purposes. Its key attributes include the ability to publish packages automatically, which has been exploited to inflate developer reputation scores through the creation of numerous derivative packages with randomized names.
Vulnerability Detail
The vulnerability stems from the package's malicious code, which modifies the package.json file to remove private flags and alters version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This behavior not only compromises the integrity of the npm ecosystem but also poses risks to developers who may unknowingly use these tainted packages, leading to potential security breaches and loss of trust in the package management system.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall thoughtless_whale-gooddev
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 thoughtless_whale-gooddev package from your project by executing the command: npm uninstall thoughtless_whale-gooddev. This will prevent any malicious code from executing until a fix is applied.
Conclusion
The thoughtless_whale-gooddev package has been identified as containing malicious code that compromises the integrity of the npm ecosystem. It is crucial for developers to stay vigilant by updating their packages and utilizing tools like Vulert to monitor for vulnerabilities. By taking proactive measures, developers can protect their applications from potential threats.
See every vulnerability recorded for thoughtless_whale-gooddev →
FAQ
It is an npm package that has been associated with a malicious campaign aimed at inflating developer reputation scores through the automatic generation of derivative packages.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software by analyzing your package-lock.json file. Check your application's vulnerability status at Vulert Scanner.
Using compromised packages can lead to security breaches, data loss, and a loss of trust in the package management ecosystem, potentially exposing your application to further vulnerabilities.
Regularly updating your dependencies, using tools like Vulert for monitoring vulnerabilities, and auditing your packages can help prevent similar issues in the future.
Immediately uninstall the package and check your application for any signs of compromise. Update your dependencies and consider using a vulnerability monitoring tool like Vulert.