Malicious Code Injection in tealove-nice6: A Threat to npm Users
Summary
MAL-2025-168532: Malicious code in tealove-nice6 (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
tealove-nice6 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate token rewards by generating and publishing derivative packages. It is characterized by its use of autopublish scripts that automate the creation of numerous variants of the package, often with randomized names. However, this functionality has been exploited to introduce malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability in tealove-nice6 originates from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, which clutters the npm registry and can inflate developer reputation scores fraudulently. The ramifications include potential security risks for users who inadvertently install these compromised packages, as they may contain harmful code.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tealove-nice6
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 avoid using the tealove-nice6 package until a secure version is released. Additionally, consider using alternative packages that do not exhibit malicious behavior.
Conclusion
The tealove-nice6 package poses a significant security risk due to its malicious code that alters package metadata and floods the npm registry. Users are advised to update or remove the package and utilize monitoring tools like Vulert to safeguard their applications from similar vulnerabilities.
See every vulnerability recorded for tealove-nice6 →
FAQ
tealove-nice6 is an npm package involved in the tea.xyz token reward campaign, designed to automate the generation and publication of derivative packages.
The vulnerability can lead to the installation of malicious code, which may compromise your application's security and integrity.
Immediately update the package to the latest version or remove it from your project to prevent potential security risks.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file. Visit Vulert Scanner to check if your application is affected.
Regularly update your dependencies, use trusted packages, and monitor your application with tools like Vulert to stay informed about potential vulnerabilities.