Malicious Code Injection in teagood-lokika94: A Threat to npm Ecosystem
Summary
MAL-2025-166964: Malicious code in teagood-lokika94 (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-lokika94 is an npm package that is part of a broader token reward campaign associated with the tea.xyz protocol. This package is designed to interact with the npm registry, potentially inflating developer reputation scores through the automatic generation and publication of derivative packages. The malicious nature of this package lies in its ability to modify critical files and republish variants, which can lead to significant pollution of the npm registry.
Vulnerability Detail
The vulnerability in teagood-lokika94 originates from its design to include autopublish scripts that automatically generate and publish derivative packages with randomized names. This malicious payload modifies the package.json file by removing private flags and changing version numbers, which can lead to unauthorized access and misuse of the npm registry. The continuous republishing of these variants can compromise the integrity of the npm ecosystem, making it difficult for developers to trust the packages they use.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-lokika94
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 measure, you can avoid using the affected package by removing it from your project dependencies and replacing it with a secure alternative. Always verify the integrity of packages before installation.
Conclusion
The discovery of malicious code in the teagood-lokika94 package highlights the importance of vigilance in the npm ecosystem. Developers should take immediate action to remove affected packages and utilize tools like Vulert to monitor for vulnerabilities. Staying informed and proactive is key to maintaining the integrity of your projects.
See every vulnerability recorded for teagood-lokika94 →
FAQ
teagood-lokika94 is an npm package associated with the tea.xyz token reward campaign, designed to inflate developer reputation scores.
The vulnerability can lead to unauthorized modifications of your package.json file and the pollution of the npm registry, making it difficult to trust other packages.
You should uninstall the package immediately using the command npm uninstall teagood-lokika94 and check for any other affected packages.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.