Malicious Code Injection in teagood-lokina7: A Threat to npm Users
Summary
MAL-2025-167037: Malicious code in teagood-lokina7 (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-lokina7 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate the generation and publication of derivative packages, which are often used to inflate developer reputation scores for token rewards. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability in teagood-lokina7 originates from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, effectively polluting the npm registry. The ramifications include potential security risks for developers who unknowingly install these compromised packages, as well as damage to the reputation of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-lokina7
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-lokina7 package and look for alternative packages that provide similar functionality without the associated risks. Always verify the integrity of packages before installation.
Conclusion
The discovery of malicious code in the teagood-lokina7 package highlights the importance of vigilance when using open-source packages. Developers should take proactive measures to secure their projects by regularly auditing dependencies and utilizing tools like Vulert to monitor for vulnerabilities.
See every vulnerability recorded for teagood-lokina7 →
FAQ
teagood-lokina7 is an npm package involved in the tea.xyz token reward campaign, which has been identified to contain malicious code.
The malicious code modifies your package.json, removes private flags, and generates random package names, potentially leading to security vulnerabilities.
You should uninstall the package immediately using 'npm uninstall teagood-lokina7' and check your project for any other compromised packages.
You can use tools like Vulert, which monitors your package-lock.json for open-source 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 any signup.