Malicious Code Injection in teagood-namakai28: npm Package Vulnerability
Summary
MAL-2025-167681: Malicious code in teagood-namakai28 (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-namakai28 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. It aims to inflate developer reputation scores for token 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-namakai28 originates from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants that pollute the npm registry, potentially affecting developers and users relying on legitimate packages. The malicious scripts (auto.js, autopublish.js, etc.) are specifically designed to automate this process, making it difficult to track and mitigate.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-namakai28
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 workaround, you can avoid using the teagood-namakai28 package and look for alternative packages that provide similar functionality without the associated risks. Additionally, regularly monitor your dependencies for vulnerabilities using tools like Vulert, which can alert you to open-source vulnerabilities in real-time.
Conclusion
The teagood-namakai28 npm package has been identified as containing malicious code that compromises the integrity of the npm registry. It is crucial for developers to uninstall this package and monitor their dependencies for vulnerabilities to maintain the security of their applications.
See every vulnerability recorded for teagood-namakai28 →
FAQ
teagood-namakai28 is an npm package involved in the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The package modifies package.json files, removes private flags, changes version numbers, and continuously republishes variants to pollute the npm registry.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
You should uninstall the package immediately using the command: npm uninstall teagood-namakai28 and monitor your other dependencies for vulnerabilities.
Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities using just your package-lock.json file.