Malicious Code Injection in tealove-nanami32: A Threat to npm Ecosystem
Summary
MAL-2025-168462: Malicious code in tealove-nanami32 (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-nanami32 is part of the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. These packages are designed to inflate developer reputation scores through the automatic generation and publication of derivative packages. The primary functionality of tealove-nanami32 is to serve as a token reward mechanism, but its malicious nature compromises the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in tealove-nanami32 originates from its design to include autopublish scripts that modify the package.json file. This includes removing private flags, changing version numbers, and generating random package names, which leads to the continuous republishing of variants. The ramifications of this vulnerability include pollution of the npm registry, potential security risks for developers using these packages, and a degradation of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tealove-nanami32
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-nanami32 package and look for alternative packages that provide similar functionality without the associated risks. Regularly check your package-lock.json file for any signs of this package and remove it if found.
Conclusion
The tealove-nanami32 package poses a significant threat to the npm ecosystem due to its malicious code designed to manipulate package metadata and inflate developer reputation scores. It is crucial to remove this package from your projects and monitor for any similar threats in the future.
See every vulnerability recorded for tealove-nanami32 →
FAQ
Tealove-nanami32 is an npm package associated with the tea.xyz token reward campaign, known for containing malicious code.
The vulnerability can lead to the pollution of the npm registry and may introduce security risks to your project if the package is used.
You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without any signup.
If you have installed tealove-nanami32, you should uninstall it immediately using 'npm uninstall tealove-nanami32' and check for any other affected packages.
Yes, you should look for alternative packages that provide similar functionality but do not have known vulnerabilities.