Malicious Code Injection in teagood-lokika46: A Threat to npm Packages
Summary
MAL-2025-166911: Malicious code in teagood-lokika46 (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-lokika46 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 facilitate automated publishing of derivative packages, which can lead to reputation inflation among developers. The package's functionality is compromised by malicious scripts that manipulate its metadata and continuously republish variants, thereby polluting the npm registry.
Vulnerability Detail
The vulnerability in teagood-lokika46 originates from its inclusion in a campaign that floods the npm ecosystem with malicious packages. The malicious payload modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to potential security risks such as unauthorized access and misuse of the npm registry. The impact of this vulnerability includes the degradation of the npm ecosystem's integrity and the potential for developers to unknowingly install compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-lokika46
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 monitor your dependencies for any malicious activity. Additionally, consider using tools like Vulert to check your package-lock.json for vulnerabilities. You can access the Vulert playground at https://vulert.com/scanner to see if your application is affected without requiring any signup.
Conclusion
The teagood-lokika46 package poses a significant security risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to uninstall this package and monitor their dependencies for vulnerabilities to maintain the integrity of their projects.
See every vulnerability recorded for teagood-lokika46 →
FAQ
teagood-lokika46 is an npm package involved in a token reward campaign that automates the publishing of derivative packages.
This vulnerability can lead to the installation of malicious packages, compromising your project's security and integrity.
You should uninstall the package immediately using the command: npm uninstall teagood-lokika46.
Yes, you can use Vulert to monitor your package-lock.json for vulnerabilities in real-time.
You can use the Vulert playground at Vulert Scanner to check for vulnerabilities without signing up.