Malicious Code Injection in teagood-nakama90: A Threat to npm Ecosystem
Summary
MAL-2025-167260: Malicious code in teagood-nakama90 (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-nakama90 is an npm package that is part of the tea.xyz token reward campaign, which has been associated with a series of malicious activities. The package is designed to interact with the npm registry, but it has been compromised to include scripts that automatically generate and publish derivative packages. This behavior is intended to inflate developer reputation scores for token rewards, making it a significant threat to the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in teagood-nakama90 originates from its inclusion in a malicious campaign that modifies the package.json file to remove private flags and change version numbers. It generates random package names and continuously republishes these variants to pollute the npm registry. This not only compromises the security of the affected package but also affects the overall trustworthiness of the npm ecosystem, potentially leading to further exploitation by malicious actors.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-nakama90
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 prevent the installation of this malicious package by using npm's package-lock.json to monitor dependencies. If you are using Vulert, you can check your application for vulnerabilities without requiring access to the code or installation. Use the Vulert playground at https://vulert.com/scanner to see if your application is affected by this vulnerability.
Conclusion
The teagood-nakama90 package has been identified as containing malicious code that poses a significant threat to the npm ecosystem. It is crucial for developers to be aware of this vulnerability and take appropriate actions to secure their applications. Regular monitoring and updates are essential to maintain the integrity of software dependencies.
See every vulnerability recorded for teagood-nakama90 →
FAQ
teagood-nakama90 is an npm package associated with the tea.xyz token reward campaign, which has been found to contain malicious code.
The malicious code modifies package.json files, removes private flags, and generates random package names, which can lead to security vulnerabilities and pollution of the npm registry.
You should remove the package from your project and monitor for any updates or patches that may address this vulnerability.
Yes, you can use Vulert to monitor and alert for open-source vulnerabilities in your software by analyzing your package-lock.json file.
You can find detailed information about this vulnerability in the official npm registry or by visiting the GitHub repository for malicious packages.