Malicious Code Injection in teagood-nakamala20: A Threat to npm Ecosystem
Summary
MAL-2025-167283: Malicious code in teagood-nakamala20 (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-nakamala20 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 allowing them to publish derivative packages. However, it has been identified as containing malicious scripts that manipulate package metadata and flood the npm registry with unwanted packages.
Vulnerability Detail
The vulnerability originates from the malicious code embedded in the teagood-nakamala20 package. This code is designed to automatically modify the package.json file by removing private flags, altering version numbers, and generating random package names. The result is a pollution of the npm registry with numerous derivative packages, which can lead to reputation inflation for developers and potential security risks for users who inadvertently install these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-nakamala20
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-nakamala20 package and monitor your package-lock.json file for any unauthorized changes. Regularly audit your npm packages using 'npm audit' to identify and address vulnerabilities.
Conclusion
The teagood-nakamala20 package poses a significant risk 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 projects for vulnerabilities to maintain security and integrity.
See every vulnerability recorded for teagood-nakamala20 →
FAQ
The malicious code can lead to the proliferation of unwanted packages in the npm registry, potentially compromising the integrity of your project and affecting developer reputation.
You can use Vulert, which monitors your package-lock.json for vulnerabilities. Visit Vulert Scanner to check your application without needing to sign up.
Immediately uninstall the package using 'npm uninstall teagood-nakamala20' and review your project for any other affected packages.
Currently, there is no patched version available. It is best to remove the package until a secure version is released.
Regularly audit your dependencies, use tools like Vulert for real-time monitoring, and stay informed about vulnerabilities in the packages you use.