Malicious Code Injection in teagood-yakuza42: A Threat to npm Ecosystem
Summary
MAL-2025-168000: Malicious code in teagood-yakuza42 (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-yakuza42 is an npm package that is part of a broader campaign involving the tea.xyz token reward system. This package, like others in the campaign, is designed to manipulate the npm registry by generating and publishing numerous derivative packages. Its primary function is to inflate developer reputation scores in exchange for token rewards, but this functionality comes with significant security risks.
Vulnerability Detail
The vulnerability in teagood-yakuza42 stems from its malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to flood the npm registry with numerous variants, thereby polluting it and potentially compromising other packages. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which incentivizes developers to engage in such practices for personal gain.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-yakuza42
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 measure, you can prevent the installation of this malicious package by using npm's package-lock.json to monitor dependencies. Ensure that your project does not include teagood-yakuza42 in its dependencies. You can also use the following command to uninstall the package if it is already installed: npm uninstall teagood-yakuza42.
Conclusion
The teagood-yakuza42 package poses a significant threat due to its malicious code designed to manipulate the npm registry. It is crucial for developers to be aware of this vulnerability, take immediate action to remove the package, and monitor their projects for any potential risks. Utilizing tools like Vulert can aid in maintaining the security of your open-source dependencies.
See every vulnerability recorded for teagood-yakuza42 →
FAQ
teagood-yakuza42 is an npm package associated with a token reward campaign that aims to inflate developer reputation scores.
The vulnerability can lead to the pollution of the npm registry, potentially affecting the integrity of your project's dependencies.
You should uninstall the package immediately using the command: npm uninstall teagood-yakuza42.
Currently, there is no specific patch for teagood-yakuza42, but you should monitor the npm registry for updates.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time. You can check your application against known vulnerabilities using the Vulert playground without any signup.