Malicious Code Injection in teagood-namakai52: A Threat to npm Packages
Summary
MAL-2025-167708: Malicious code in teagood-namakai52 (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-namakai52 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, often with randomized names. Its primary function is to inflate developer reputation scores for rewards associated with the tea protocol. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability in teagood-namakai52 stems from its malicious payload that modifies the package.json file. It removes private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. This behavior not only pollutes the npm registry but also poses a risk to developers who may unknowingly use these compromised packages. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which incentivizes such malicious practices.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-namakai52
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 affected package by not including it in your dependencies. Additionally, consider using package-lock.json to monitor your dependencies for any vulnerabilities.
Conclusion
The teagood-namakai52 package has been identified as containing malicious code that poses a significant risk to npm users. It is crucial to uninstall this package and monitor your dependencies for vulnerabilities. Utilizing tools like Vulert can help ensure your applications remain secure.
See every vulnerability recorded for teagood-namakai52 →
FAQ
teagood-namakai52 is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The malicious code modifies your package.json, removes private flags, and generates random package names, which can lead to reputation inflation and registry pollution.
You should uninstall the package immediately using npm uninstall teagood-namakai52 and monitor your project for any other vulnerabilities.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground at Vulert Scanner without any signup.
It is advisable to keep an eye on the package for any updates. If a patched version is released, you can update using npm install teagood-namakai52@latest.