Malicious Code Injection in teagood-lokika98: A Threat to npm Users
Summary
MAL-2025-166968: Malicious code in teagood-lokika98 (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-lokika98 is an npm package that is part of the tea.xyz token reward campaign, which has been associated with a series of malicious activities on the npm registry. This package is designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. The malicious nature of this package poses a significant risk to users and the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability originates from the package's design to include autopublish scripts that modify the package.json file. These modifications remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants that pollute the npm registry. This not only compromises the integrity of the npm ecosystem but also exposes users to potential security risks from these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-lokika98
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, users can avoid using the affected package and monitor their package-lock.json file for any unauthorized changes. Regularly auditing dependencies can help mitigate risks associated with malicious packages.
Conclusion
The teagood-lokika98 package poses a significant threat to npm users due to its malicious code designed to manipulate package metadata and pollute the npm registry. Users are advised to uninstall the package and monitor their dependencies closely. Utilizing tools like Vulert can help in identifying and managing such vulnerabilities effectively.
See every vulnerability recorded for teagood-lokika98 →
FAQ
teagood-lokika98 is an npm package involved in a malicious campaign to inflate developer reputation scores through the automatic generation of derivative packages.
The vulnerability can lead to unauthorized modifications in your package.json file, potentially exposing your application to security risks and polluting the npm registry.
You should uninstall the package immediately using 'npm uninstall teagood-lokika98' and monitor your dependencies for any unauthorized changes.
Yes, you can use tools like 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 by this vulnerability without requiring any signup.