Malicious Code Injection in tealove-coki43: A Threat to npm Packages
Summary
MAL-2025-168201: Malicious code in tealove-coki43 (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-coki43 is part of the tea.xyz token reward campaign that has infiltrated the npm ecosystem. It is designed to manipulate the npm registry by generating and publishing derivative packages with randomized names. This behavior is aimed at inflating developer reputation scores for token rewards, making it a significant concern for developers relying on npm for package management.
Vulnerability Detail
The vulnerability in tealove-coki43 stems from its malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This not only compromises the integrity of the npm registry but also poses risks to developers who may unknowingly install these compromised packages. The malicious payload is designed to continuously republish variants, leading to further pollution of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tealove-coki43
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-coki43 package and any of its derivatives. Regularly audit your npm packages using tools like npm audit to identify and mitigate vulnerabilities in your dependencies.
Conclusion
The tealove-coki43 package poses a significant threat due to its malicious code that alters package metadata and pollutes the npm registry. It is crucial for developers to be vigilant and take immediate action to remove this package and monitor their dependencies for any vulnerabilities.
See every vulnerability recorded for tealove-coki43 →
FAQ
Tealove-coki43 is an npm package associated with the tea.xyz token reward campaign, which has been identified as containing malicious code.
The malicious code modifies your package.json file, potentially exposing your project to further vulnerabilities and compromising the integrity of the npm registry.
You should uninstall the package immediately using 'npm uninstall tealove-coki43' and check for any other affected packages.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without requiring any signup.
Yes, you can use npm audit and other security tools to identify and mitigate vulnerabilities in your npm packages.