Malicious Code Injection in teagood-nakamala25: A Threat to npm Users
Summary
MAL-2025-167288: Malicious code in teagood-nakamala25 (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-nakamala25 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate token rewards for developers by generating and publishing derivative packages. However, it has been identified as malicious, containing scripts that manipulate package metadata and flood the npm registry with unwanted packages.
Vulnerability Detail
The vulnerability in teagood-nakamala25 originates from its inclusion in a campaign that aims to inflate developer reputation scores through the automatic generation of numerous derivative packages. The malicious payload modifies the package.json file to remove private flags, alters version numbers, and creates random package names, leading to pollution of the npm registry. This can result in compromised developer accounts and a degraded ecosystem as legitimate packages become harder to find.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-nakamala25
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 measure, you can avoid using the affected package by removing it from your dependencies and replacing it with a secure alternative that provides similar functionality.
Conclusion
The discovery of malicious code in teagood-nakamala25 highlights the importance of vigilance when using open-source packages. By promptly removing affected packages and utilizing tools like Vulert, developers can protect their projects from potential threats.
See every vulnerability recorded for teagood-nakamala25 →
FAQ
teagood-nakamala25 is an npm package associated with the tea.xyz token reward campaign, which has been identified as malicious.
The vulnerability can lead to the pollution of the npm registry, making it difficult to find legitimate packages and potentially compromising your developer account.
You should uninstall the package immediately using 'npm uninstall teagood-nakamala25' and check for any potential impacts on your project.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file. You can check your application for vulnerabilities using the Vulert playground without any signup.
Regularly update your packages, monitor for vulnerabilities using tools like Vulert, and review your dependencies for any known issues.