Malicious Code Injection in teagood-yakuza7: npm Package Vulnerability
Summary
MAL-2025-168030: Malicious code in teagood-yakuza7 (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-yakuza7 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 npm registry.
Vulnerability Detail
The vulnerability originates from the malicious code embedded within the teagood-yakuza7 package. This code includes autopublish scripts that modify the package.json file by removing private flags, altering version numbers, and generating random package names. The continuous republishing of these variants can lead to pollution of the npm registry, potentially harming developers' reputations and the integrity of the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-yakuza7
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 prevent the installation of the affected package by using npm's package-lock.json to lock your dependencies. Additionally, you can monitor your project for vulnerabilities using tools like Vulert, which can alert you to any open-source vulnerabilities in real-time.
Conclusion
The teagood-yakuza7 npm package contains malicious code that poses a significant risk to developers and the integrity of the npm registry. It is crucial to remove this package and monitor for vulnerabilities using tools like Vulert to ensure the security of your applications.
See every vulnerability recorded for teagood-yakuza7 →
FAQ
The malicious code can lead to the pollution of the npm registry, affecting the reputation of developers and potentially compromising the security of applications that depend on this package.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
If you have installed teagood-yakuza7, it is advisable to remove it from your project immediately and monitor for any updates or patches.
Yes, Vulert can monitor your package-lock.json file to alert you in real-time for any open-source vulnerabilities in your software.
Failing to address this vulnerability could lead to security breaches, loss of developer reputation, and potential exploitation of your application by malicious actors.