Malicious Code Injection in tealove-nice46: A Threat to npm Packages
Summary
MAL-2025-168526: Malicious code in tealove-nice46 (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-nice46 is part of the tea.xyz token reward campaign, which has been known to flood the npm ecosystem 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 affects the integrity of the npm registry but also poses a risk to developers who may unknowingly use these compromised packages.
Vulnerability Detail
The vulnerability in tealove-nice46 originates from its design to include autopublish scripts that modify the package.json file. These modifications remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants that pollute the npm registry. The ramifications include potential security risks for developers who integrate these packages into their projects, as they may inadvertently introduce malicious code into their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tealove-nice46
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-nice46 package altogether until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The tealove-nice46 package poses a significant risk due to its malicious code injection capabilities. Developers should take immediate action to update or remove the package from their projects to safeguard against potential security threats. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for tealove-nice46 →
FAQ
tealove-nice46 is an npm package that is part of a campaign to inflate developer reputation scores through the automatic generation of malicious packages.
The vulnerability can introduce malicious code into your project, potentially compromising its security and integrity.
You should immediately update the package to the latest patched version or remove it from your project to mitigate the risks.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.