Malicious Code Injection in tealove-coki10: A Threat to npm Ecosystem
Summary
MAL-2025-168165: Malicious code in tealove-coki10 (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
The package tealove-coki10 is part of a broader campaign associated with the tea.xyz token reward system, which has been known to flood the npm registry with malicious packages. These packages are designed to manipulate developer reputation scores by automatically generating and publishing derivative packages with randomized names. This behavior not only compromises the integrity of the npm ecosystem but also poses significant risks to developers who may unknowingly use these packages.
Vulnerability Detail
The vulnerability in tealove-coki10 stems from its malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This allows the package to continuously republish variants, polluting the npm registry and potentially leading to the installation of compromised packages by unsuspecting developers. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which incentivizes the creation of such malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tealove-coki10
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 tealove-coki10 package and any other packages associated with the tea.xyz campaign. Regularly audit your package-lock.json file for any suspicious entries and remove any packages that you do not recognize or trust.
Conclusion
The tealove-coki10 package poses a significant threat to the npm ecosystem due to its malicious behavior aimed at manipulating developer reputation scores. It is crucial for developers to be vigilant, regularly audit their dependencies, and utilize tools like Vulert to monitor for vulnerabilities. By taking proactive measures, developers can protect their projects from potential security risks.
See every vulnerability recorded for tealove-coki10 →
FAQ
Tealove-coki10 is an npm package that is part of a malicious campaign aimed at manipulating developer reputation scores through the creation of derivative packages.
The vulnerability can lead to the installation of compromised packages, which may introduce security risks and affect the integrity of your project.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring any signup.
If you have installed tealove-coki10, you should uninstall it immediately using the command npm uninstall tealove-coki10 and audit your dependencies for any other malicious packages.
There are no patches available for tealove-coki10 as it is a malicious package. The best course of action is to remove it from your project.