Malicious Code Injection in teagood-lokina38: npm Package Vulnerability
Summary
MAL-2025-167002: Malicious code in teagood-lokina38 (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-lokina38 is a package associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with numerous derivative packages. These packages are designed to inflate developer reputation scores for token rewards. The package's functionality revolves around generating and publishing new package variants, but it has been compromised to include malicious scripts that alter package metadata.
Vulnerability Detail
The vulnerability in teagood-lokina38 originates from its malicious payload that modifies the package.json file by removing private flags and changing version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This behavior can lead to a compromised development environment, inflated reputation scores, and potential exploitation of developers unaware of the malicious activities.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall teagood-lokina38
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 prevent the installation of this malicious package by using npm's package-lock.json to monitor dependencies. Ensure that your project does not include teagood-lokina38 or any of its derivatives. You can also use tools like Vulert to monitor your project for vulnerabilities in real-time.
Conclusion
The teagood-lokina38 package has been identified as malicious due to its ability to alter package metadata and republish itself with random names. It is crucial for developers to uninstall this package and monitor their projects for vulnerabilities to maintain a secure development environment.
See every vulnerability recorded for teagood-lokina38 →
FAQ
teagood-lokina38 is an npm package linked to the tea.xyz token reward campaign, which has been identified as malicious due to its behavior of modifying package metadata.
This vulnerability can lead to the pollution of the npm registry, compromised package integrity, and potential exploitation of developers who unknowingly install affected packages.
You should immediately uninstall the package using 'npm uninstall teagood-lokina38' and monitor your project for any further vulnerabilities.
You can use Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time. You can check your application against known vulnerabilities using the Vulert playground without any signup.
Regularly audit your dependencies, use tools like Vulert for real-time monitoring, and ensure that you only install packages from trusted sources.