Malicious Code Injection in teagood-lokika9: A Threat to npm Packages
Summary
MAL-2025-166959: Malicious code in teagood-lokika9 (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-lokika9 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to interact with the npm registry, potentially inflating developer reputation scores through the automatic generation and publishing of derivative packages. However, it has been identified as containing malicious code that compromises the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in teagood-lokika9 stems from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to flood the npm registry with numerous variants, thereby polluting it and undermining the reliability of package management. The origin of this issue is linked to the tea.xyz token reward campaign, which incentivizes such practices.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-lokika9
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-lokika9 package and monitor your project for any dependencies that may inadvertently include it. Additionally, consider using tools like Vulert to monitor your package-lock.json file for vulnerabilities in real-time.
Conclusion
The discovery of malicious code in the teagood-lokika9 npm package highlights the importance of vigilance in package management. By understanding the nature of this vulnerability and taking appropriate action, developers can protect their projects from potential threats. Utilizing tools like Vulert can further enhance security by providing real-time monitoring for vulnerabilities.
See every vulnerability recorded for teagood-lokika9 →
FAQ
teagood-lokika9 is an npm package associated with the tea.xyz token reward campaign, which has been identified as containing malicious code.
The malicious code modifies your package.json file, removes private flags, and floods the npm registry with numerous variants, potentially compromising your project's integrity.
You should uninstall the package immediately using the command 'npm uninstall teagood-lokika9' and check for any dependencies that may rely on it.
Regularly update your npm packages to their latest versions and use tools like Vulert to monitor your package-lock.json for vulnerabilities.
Vulert is a tool that monitors and alerts for open-source vulnerabilities in your software by analyzing your package-lock.json file. You can use the Vulert playground to check if your application is affected by this vulnerability without any signup.