Malicious Code Injection in teagood-namakai6: A Threat to npm Packages
Summary
MAL-2025-167716: Malicious code in teagood-namakai6 (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-namakai6 is an npm package that is part of the tea.xyz token reward campaign. This campaign has been known to flood the npm registry with packages that contain scripts designed to manipulate package metadata and inflate developer reputation scores. The package's primary functionality revolves around token rewards, but its malicious nature poses significant risks to developers and the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in teagood-namakai6 originates from its design to include autopublish scripts that modify the package.json file. These scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants. This behavior not only pollutes the npm registry but also compromises the security of projects that depend on this package, potentially allowing for further exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-namakai6
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-namakai6 package and look for alternative packages that do not exhibit malicious behavior. Additionally, you can monitor your package-lock.json file for any unauthorized changes using tools like Vulert, which can alert you to open-source vulnerabilities in real-time.
Conclusion
The teagood-namakai6 package poses a significant threat due to its malicious code that modifies package metadata and repopulates the npm registry with harmful variants. It is essential to remove this package from your projects and monitor for vulnerabilities using tools like Vulert to ensure the security of your applications.
See every vulnerability recorded for teagood-namakai6 →
FAQ
teagood-namakai6 is an npm package associated with the tea.xyz token reward campaign, known for its malicious scripts.
The vulnerability can lead to unauthorized modifications in your package.json file and may introduce further security risks.
You should uninstall the package immediately using 'npm uninstall teagood-namakai6' and monitor your project for any unusual behavior.
Yes, tools like Vulert can help monitor your package-lock.json file for vulnerabilities without requiring code access or installation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.