Malicious Code Injection in teagood-lokika47: A Threat to npm Users
Summary
MAL-2025-166912: Malicious code in teagood-lokika47 (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-lokika47 is an npm package that appears to be part of a token reward campaign associated with the tea.xyz protocol. This package is designed to generate and publish derivative packages with randomized names, aimed at inflating developer reputation scores for token rewards. The malicious nature of this package lies in its ability to alter package metadata and continuously republish variants, leading to pollution of the npm registry.
Vulnerability Detail
The vulnerability in teagood-lokika47 originates from its malicious code that modifies the package.json file by removing private flags and changing version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes these variants. This behavior not only compromises the integrity of the npm registry but also poses a risk to developers who may unknowingly use these tainted packages, potentially leading to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-lokika47
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 teagood-lokika47 package and any of its derivatives. Additionally, consider using a package-lock.json file to monitor dependencies and ensure that only trusted packages are included in your project.
Conclusion
The teagood-lokika47 package poses a significant risk due to its malicious code that alters package metadata and repopulates the npm registry with tainted packages. It is crucial for developers to remove this package and monitor their dependencies to maintain the security of their applications.
See every vulnerability recorded for teagood-lokika47 →
FAQ
teagood-lokika47 is an npm package involved in a token reward campaign that generates and publishes malicious derivative packages.
The vulnerability can lead to the inclusion of malicious code in your application, compromising its security and integrity.
You should uninstall the package immediately using 'npm uninstall teagood-lokika47' and check for any other affected packages.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time without requiring code access.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without any signup.