Malicious Code Injection in teagood-namakai84 Package - npm Vulnerability
Summary
MAL-2025-167743: Malicious code in teagood-namakai84 (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
The teagood-namakai84 package is part of the tea.xyz token reward campaign that has infiltrated the npm ecosystem. This package is designed to automate the generation and publication of derivative packages, often with randomized names, to inflate developer reputation scores for token rewards. Its functionality revolves around manipulating package metadata and republishing variants to disrupt the npm registry.
Vulnerability Detail
The vulnerability in the teagood-namakai84 package 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, polluting the npm registry and potentially compromising the integrity of other packages. The malicious scripts included in the package (auto.js, autopublish.js, etc.) are designed to automate these harmful actions, making it a significant threat to developers and users relying on npm.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-namakai84
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 this malicious package by using npm's package-lock.json to monitor dependencies. Ensure that your project does not include teagood-namakai84 or any of its derivatives. Regularly audit your dependencies using npm audit to identify and address vulnerabilities.
Conclusion
The teagood-namakai84 package presents a significant security risk due to its malicious code that alters package metadata and repopulates the npm registry with harmful variants. It is crucial for developers to remove this package and monitor their dependencies to maintain the integrity and security of their applications.
See every vulnerability recorded for teagood-namakai84 →
FAQ
teagood-namakai84 is an npm package associated with the tea.xyz token reward campaign, designed to manipulate package metadata and inflate developer reputation scores.
The vulnerability can lead to the pollution of the npm registry, potentially compromising the integrity of your project's dependencies and affecting the overall security of your application.
If you have installed teagood-namakai84, you should uninstall it immediately using npm uninstall teagood-namakai84 and check your package-lock.json for any remaining references.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time. You can also check your application against known vulnerabilities using the Vulert playground without any signup.
Regularly audit your dependencies using npm audit, keep your packages updated, and consider using tools like Vulert to monitor for vulnerabilities in real-time.