Malicious Code Vulnerability in teagood-namakai64: Exploitation of npm Packages
Summary
MAL-2025-167721: Malicious code in teagood-namakai64 (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-namakai64 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate token rewards by generating and publishing derivative packages. However, it has been identified as containing malicious scripts that manipulate package metadata and flood the npm registry with spammy packages.
Vulnerability Detail
The vulnerability originates from malicious code embedded in the teagood-namakai64 package. This code is designed to automatically modify the package.json file by removing private flags, altering version numbers, and creating random package names. The result is a continuous republishing of these variants, which pollutes the npm registry and can inflate developer reputation scores fraudulently. This poses significant risks to developers who may unknowingly use these compromised packages, leading to potential security breaches and loss of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-namakai64
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-namakai64 package and look for alternative packages that provide similar functionality without the associated risks. Always verify the integrity and source of the packages you choose to include in your projects.
Conclusion
The teagood-namakai64 package has been identified as containing malicious code that can compromise the integrity of npm packages. It is crucial for developers to be vigilant and take immediate action to remove this package from their projects. Utilizing tools like Vulert can help in monitoring and managing open-source vulnerabilities effectively.
See every vulnerability recorded for teagood-namakai64 →
FAQ
The primary risk is the automatic modification of package metadata, which can lead to the proliferation of spammy packages and potential security vulnerabilities in your application.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By analyzing your package-lock.json file, Vulert can help identify if your application is affected by this vulnerability.
No patch is available for the teagood-namakai64 package. The recommended action is to uninstall the package and avoid using it.
You should immediately uninstall the package using 'npm uninstall teagood-namakai64' and review your project for any potential security issues that may have arisen from its use.
To prevent similar vulnerabilities, regularly audit your dependencies, use trusted packages, and consider using tools like Vulert to monitor for vulnerabilities in your open-source software.