Malicious Code Injection in teagood-yakuza62: A Threat to npm Packages
Summary
MAL-2025-168022: Malicious code in teagood-yakuza62 (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
teagood-yakuza62 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to interact with the npm registry and is intended to facilitate the distribution of token rewards. However, it has been identified as containing malicious code that compromises its integrity and the security of the npm ecosystem.
Vulnerability Detail
The vulnerability in teagood-yakuza62 originates from its design to automatically generate and publish derivative packages with randomized names. This malicious behavior includes modifying the package.json file to remove private flags, altering version numbers, and continuously republishing variants to pollute the npm registry. This can lead to significant security risks, including the potential for dependency confusion and the introduction of harmful code into projects that rely on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-yakuza62
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 teagood-yakuza62 package and replace it with a known safe alternative. Always verify the integrity of packages before including them in your project.
Conclusion
The discovery of malicious code in the teagood-yakuza62 npm package highlights the importance of vigilance when selecting dependencies for your projects. By removing this package and utilizing tools like Vulert, developers can better protect their applications from vulnerabilities.
See every vulnerability recorded for teagood-yakuza62 →
FAQ
teagood-yakuza62 is an npm package associated with the tea.xyz token reward campaign, which has been identified as containing malicious code.
The malicious code can modify your package.json, remove private flags, and publish harmful variants, potentially compromising your project's security.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.
If you have used teagood-yakuza62, you should uninstall it immediately and review your project's dependencies for any other potentially harmful packages.
Yes, consider using well-known and trusted npm packages that serve similar functionalities without the associated risks.