Malicious Code Injection in tealove-nanami25 Package
Summary
MAL-2025-168454: Malicious code in tealove-nanami25 (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 tealove-nanami25 package is part of a broader campaign associated with the tea.xyz token reward system, which has been observed flooding the npm ecosystem. This package is designed to automate the generation and publishing of derivative packages, often with randomized names, to inflate developer reputation scores for token rewards. Its functionality is compromised by malicious scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability in the tealove-nanami25 package stems from the inclusion of malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. The origin of this vulnerability is linked to a campaign aimed at manipulating the npm registry, which can result in pollution of the registry and potential security risks for developers using these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tealove-nanami25
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-nanami25 package and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your package-lock.json file for any unauthorized changes.
Conclusion
The tealove-nanami25 package contains a significant vulnerability due to malicious code that alters package metadata and floods the npm registry. It is essential to remove this package from your project and monitor for similar vulnerabilities using tools like Vulert.
See every vulnerability recorded for tealove-nanami25 →
FAQ
Tealove-nanami25 is an npm package associated with the tea.xyz token reward campaign, designed to automate the publishing of derivative packages.
The vulnerability can lead to the pollution of the npm registry and may compromise the integrity of your project by introducing malicious code.
You should uninstall the tealove-nanami25 package immediately and check for any unauthorized changes in your project files.
Yes, you can use Vulert to monitor your project for open-source vulnerabilities in real-time. It analyzes your package-lock.json file without requiring code access.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.