Malicious Code Injection in teagood-nakama77: A Threat to npm Ecosystem
Summary
MAL-2025-167245: Malicious code in teagood-nakama77 (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-nakama77 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 automatically generating and publishing derivative packages. However, it has been identified as containing malicious scripts that compromise the integrity of the npm registry.
Vulnerability Detail
The vulnerability originates from the presence of malicious code within the teagood-nakama77 package. This code is designed to modify the package.json file by removing private flags, altering version numbers, and generating random package names. The malicious payload continuously republishes these variants, leading to pollution of the npm registry and potential reputational damage for developers. The scripts involved include auto.js, autopublish.js, autopublish2.js, and autopublish3.js, which automate the process of creating and publishing these harmful packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-nakama77
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-nakama77 package and any packages that depend on it. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The teagood-nakama77 package poses a significant threat due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to remove this package and monitor their dependencies for similar vulnerabilities. Utilizing tools like Vulert can help in real-time monitoring of open-source vulnerabilities.
See every vulnerability recorded for teagood-nakama77 →
FAQ
teagood-nakama77 is an npm package involved in the tea.xyz token reward campaign, which has been identified as containing malicious code.
The malicious code modifies the package.json file, removes private flags, changes version numbers, and generates random package names, leading to npm registry pollution.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
If you have installed teagood-nakama77, you should uninstall it immediately using npm uninstall teagood-nakama77.
Yes, consider using other npm packages that offer similar functionality without the associated risks of malicious code.