Malicious Code Injection in teagood-nakama18: A Threat to npm Packages
Summary
MAL-2025-167181: Malicious code in teagood-nakama18 (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-nakama18 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate token rewards through various scripts that automate the generation and publication of derivative packages. Unfortunately, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability in teagood-nakama18 originates from its design to inflate developer reputation scores for tea protocol token rewards. It includes autopublish scripts that modify the package.json file by removing private flags, changing version numbers, and generating random package names. This malicious behavior leads to the continuous republishing of variants, polluting the npm registry and potentially affecting other developers and users relying on npm packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-nakama18
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-nakama18 package and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your package-lock.json file using Vulert to receive real-time alerts for any open-source vulnerabilities.
Conclusion
The discovery of malicious code in teagood-nakama18 highlights the importance of vigilance when using open-source packages. By understanding the nature of this vulnerability and taking appropriate action, developers can protect their applications and maintain the integrity of the npm ecosystem.
See every vulnerability recorded for teagood-nakama18 →
FAQ
teagood-nakama18 is an npm package involved in the tea.xyz token reward campaign, designed to automate the publication of packages.
The package modifies package.json files, removes private flags, and generates random package names to inflate developer reputation scores.
You can use Vulert's playground at Vulert Scanner to check if your application is affected without any signup.
You should uninstall the package immediately using 'npm uninstall teagood-nakama18' and check for any dependencies that may be affected.
Regularly monitor your dependencies using tools like Vulert, which can alert you to vulnerabilities in real-time based on your package-lock.json.