Malicious Code Injection in teagood-lokina61: A Threat to npm Packages
Summary
MAL-2025-167028: Malicious code in teagood-lokina61 (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-lokina61 is an npm package that appears to be part of a broader campaign aimed at exploiting the npm registry for token rewards associated with the tea.xyz protocol. This package is designed to automate the creation and publishing of derivative packages, which can lead to reputation inflation for developers involved in the campaign. The malicious nature of this package poses a significant risk to the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in teagood-lokina61 originates from its design to include autopublish scripts that modify the package.json file. These scripts remove private flags, alter version numbers, and generate random package names, ultimately leading to the continuous republishing of variants. This behavior not only pollutes the npm registry but also compromises the security and reliability of the packages available to developers. The malicious payload can potentially affect any project that inadvertently includes this package, leading to further exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-lokina61
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-lokina61 package and any other packages that may have been derived from it. Monitor your package-lock.json file for any unexpected changes or additions that may indicate the presence of malicious packages.
Conclusion
The teagood-lokina61 package poses a significant risk due to its malicious code designed to exploit the npm registry. It is crucial for developers to be vigilant about the packages they include in their projects and to take immediate action to remove any affected packages. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for teagood-lokina61 →
FAQ
teagood-lokina61 is an npm package associated with a malicious campaign that aims to exploit the npm registry for token rewards.
The vulnerability can lead to the inclusion of malicious code in your project, potentially compromising its security and integrity.
You should uninstall the package immediately using the command npm uninstall teagood-lokina61 and check for any other affected packages.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time without requiring code access.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.