Malicious Code Injection in teagood-lokika58: A Threat to npm Ecosystem
Summary
MAL-2025-166924: Malicious code in teagood-lokika58 (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-lokika58 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to interact with the npm registry, but it has been identified as malicious due to its functionality that includes autopublishing scripts. These scripts generate and publish derivative packages with randomized names, aimed at inflating developer reputation scores for token rewards. The presence of such malicious packages poses a significant risk to developers and the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in teagood-lokika58 originates from its design to manipulate the npm registry. It modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. This behavior not only pollutes the npm registry but also compromises the security of applications that may inadvertently depend on these malicious packages. The ramifications include potential exposure to further malicious code and a degradation of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-lokika58
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 affected package and look for alternative packages that provide similar functionality without the associated risks. Always validate the source and reputation of packages before including them in your project.
Conclusion
The discovery of the malicious code in teagood-lokika58 highlights the importance of vigilance when using open-source packages. Developers should take proactive measures to secure their applications by regularly auditing dependencies and utilizing tools like Vulert for real-time monitoring of vulnerabilities.
See every vulnerability recorded for teagood-lokika58 →
FAQ
teagood-lokika58 is an npm package involved in a token reward campaign that has been identified as malicious due to its autopublishing behavior.
The vulnerability can lead to the injection of malicious code into your application, potentially compromising its security and integrity.
You should immediately uninstall the package using npm uninstall teagood-lokika58 and check for any other dependencies that may be affected.
You can use tools like Vulert, which monitors your package-lock.json for vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.