Malicious Code Injection in tealove-coki6: A Threat to npm Packages
Summary
MAL-2025-168210: Malicious code in tealove-coki6 (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-coki6 is part of a broader campaign associated with the tea.xyz token reward system. It is designed to manipulate the npm ecosystem by flooding it with derivative packages. These packages often contain scripts that automatically publish new variants with altered names and metadata, aiming to inflate developer reputation scores for token rewards. The malicious nature of this package poses a significant risk to developers and users relying on npm for package management.
Vulnerability Detail
The vulnerability in tealove-coki6 stems from its malicious payload, which modifies the package.json file to remove private flags and alters version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes these variants to the npm registry. This behavior not only pollutes the registry but also compromises the integrity of the npm ecosystem, potentially leading to security risks for applications that depend on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tealove-coki6
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-coki6 package and replace it with a trusted alternative. Review your package-lock.json file to ensure that no malicious packages are included. You can also use tools like Vulert to monitor your dependencies for vulnerabilities.
Conclusion
The tealove-coki6 package presents a significant risk due to its malicious behavior of modifying package metadata and flooding the npm registry with compromised packages. It is crucial for developers to be vigilant about the packages they use and to regularly monitor for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for tealove-coki6 →
FAQ
Tealove-coki6 is an npm package that is part of a malicious campaign aimed at inflating developer reputation scores through the publication of derivative packages.
The vulnerability can lead to the inclusion of malicious code in your application, potentially compromising its security and integrity.
You should uninstall the package immediately using 'npm uninstall tealove-coki6' and check your project for any other affected packages.
You can use Vulert, which monitors your package-lock.json file to alert you in real-time about open-source vulnerabilities in your software.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.