Malicious Code Injection in tealove-nanami16: A Threat to npm Ecosystem
Summary
MAL-2025-168444: Malicious code in tealove-nanami16 (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-nanami16 is a package within the npm ecosystem, primarily associated with the tea.xyz token reward campaign. This package is designed to facilitate the generation and publication 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 tealove-nanami16 originates from malicious code embedded within the package. This code is designed to modify the package.json file by removing private flags, altering version numbers, and generating random package names, which leads to the continuous republishing of these variants. The ramifications 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-nanami16
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-nanami16 package and monitor your project for any dependencies that might require it. Additionally, you can use the following command to uninstall the package: npm uninstall tealove-nanami16.
Conclusion
The tealove-nanami16 package poses a significant risk due to its embedded malicious code, which alters package metadata and can lead to security vulnerabilities. It is crucial for developers to remove this package and monitor their projects for any dependencies that may be affected.
See every vulnerability recorded for tealove-nanami16 →
FAQ
tealove-nanami16 is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The malicious code modifies your package.json file, potentially leading to security vulnerabilities and pollution of the npm registry.
You should uninstall the package immediately and monitor your project for any dependencies that may require it.
Currently, there is no patched version available. It is advisable to remove the package until a secure version is released.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json. You can check your application for vulnerabilities at the Vulert playground without any signup.