Malicious Code Injection in teagood-nakama82: A Threat to npm Users
Summary
MAL-2025-167251: Malicious code in teagood-nakama82 (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-nakama82 is a package that was part of the tea.xyz token reward campaign, which aimed to incentivize developers through token rewards. This package, like others in the campaign, is designed to manipulate the npm registry by generating and publishing derivative packages with randomized names. The malicious nature of this package lies in its ability to alter package metadata and republish variants, potentially harming the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in teagood-nakama82 originates from its malicious code that modifies the package.json file to remove private flags, changes version numbers, and generates random package names. This behavior is intended to inflate developer reputation scores for token rewards, leading to pollution of the npm registry with numerous derivative packages. The ramifications include compromised package integrity, potential security risks for applications relying on these packages, and degradation of the npm ecosystem's trustworthiness.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-nakama82
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-nakama82 package and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your package-lock.json file for any unauthorized changes.
Conclusion
The discovery of malicious code in teagood-nakama82 highlights the importance of vigilance when using open-source packages. By understanding the risks and taking proactive measures, developers can protect their applications and maintain the integrity of the npm ecosystem.
See every vulnerability recorded for teagood-nakama82 →
FAQ
teagood-nakama82 is an npm package that was part of a token reward campaign, which has been identified as containing malicious code.
The malicious code modifies package metadata and can lead to the publication of numerous derivative packages, potentially compromising the integrity of your application.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.
If you have installed teagood-nakama82, it is crucial to uninstall it immediately using npm uninstall teagood-nakama82.
Yes, consider looking for other npm packages that provide similar functionality without the associated risks of malicious code.