Malicious Code Injection in teagood-nakama47: A Threat to npm Ecosystem
Summary
MAL-2025-167212: Malicious code in teagood-nakama47 (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-nakama47 is an npm package that is part of a token reward campaign associated with the tea.xyz protocol. It is designed to facilitate the distribution of token rewards to developers. However, this package has been identified as containing malicious code that can compromise the integrity of the npm registry and the security of applications relying on it.
Vulnerability Detail
The vulnerability in teagood-nakama47 stems from its inclusion in a series of malicious packages that flood the npm ecosystem. These packages contain scripts that automatically modify the package.json file, removing private flags and altering version numbers. They generate random package names and continuously republish variants, leading to pollution of the npm registry. This behavior can inflate developer reputation scores fraudulently and potentially introduce security risks to applications that depend on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-nakama47
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-nakama47 package and look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using tools like Vulert to monitor your package dependencies for vulnerabilities.
Conclusion
The discovery of malicious code in the teagood-nakama47 package highlights the importance of vigilance in managing open-source dependencies. By understanding the nature of this vulnerability and taking proactive steps to mitigate risks, developers can protect their applications and maintain the integrity of the npm ecosystem.
See every vulnerability recorded for teagood-nakama47 →
FAQ
teagood-nakama47 is an npm package associated with the tea.xyz token reward campaign, designed to reward developers with tokens.
The package modifies package.json files, removes private flags, changes version numbers, and generates random package names, leading to pollution of the npm registry.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
If you have installed teagood-nakama47, you should uninstall it immediately using the command npm uninstall teagood-nakama47.
Regularly audit your dependencies, use tools like Vulert for real-time monitoring, and only install packages from trusted sources.