Malicious Code Injection in teagood-nakama79: A Threat to npm Ecosystem
Summary
MAL-2025-167247: Malicious code in teagood-nakama79 (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-nakama79 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to interact with the npm registry, allowing developers to publish and manage their packages. However, it has been identified as containing malicious code that can compromise the integrity of the npm ecosystem by generating and publishing derivative packages with harmful intent.
Vulnerability Detail
The vulnerability in teagood-nakama79 originates from its inclusion in a campaign that floods the npm registry with malicious packages. The malicious code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. This behavior not only pollutes the npm registry but also poses a risk to developers who may unknowingly install these compromised packages, potentially leading to further exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-nakama79
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 teagood-nakama79 and any other packages associated with the tea.xyz token reward campaign. Additionally, consider using npm audit to identify and address vulnerabilities in your project.
Conclusion
The discovery of malicious code in teagood-nakama79 highlights the importance of vigilance when using open-source packages. Developers should take proactive measures to ensure their projects are secure by removing affected packages and utilizing tools like Vulert to monitor for vulnerabilities.
See every vulnerability recorded for teagood-nakama79 →
FAQ
teagood-nakama79 is an npm package that is part of a token reward campaign, which has been found to contain malicious code.
The malicious code can modify your package.json file, remove private flags, and publish harmful variants to the npm registry, potentially compromising your project's integrity.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without any signup.
If you have installed teagood-nakama79, it is advisable to remove it immediately and check for any other affected packages in your project.
Yes, tools like Vulert can help monitor your projects for vulnerabilities using just the package-lock.json file, providing alerts in real-time.