Malicious Code Injection in tealove-nanami18: A Threat to npm Users
Summary
MAL-2025-168446: Malicious code in tealove-nanami18 (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-nanami18 is part of a larger ecosystem associated with 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 automated publishing of derivative packages. The functionality of tealove-nanami18 is compromised due to its malicious payload, which alters package configurations and repurposes the package for nefarious activities.
Vulnerability Detail
The vulnerability in tealove-nanami18 stems from its inclusion in a campaign that utilizes autopublish scripts to generate and publish numerous derivative packages with randomized names. This malicious behavior modifies the package.json file by removing private flags, changing version numbers, and creating random package names, which leads to pollution of the npm registry. The ramifications include potential security risks for developers who unknowingly install these packages, as they may inadvertently contribute to the malicious ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tealove-nanami18
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 measure, you can avoid using the tealove-nanami18 package and monitor your dependencies for any similar malicious packages. Additionally, consider using tools like Vulert to monitor your package-lock.json for vulnerabilities. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The tealove-nanami18 package poses a significant risk due to its malicious code designed to manipulate npm registry behavior. It is crucial for developers to remain vigilant and utilize tools like Vulert to monitor their dependencies for vulnerabilities. Uninstalling the affected package and staying updated with secure versions is essential for maintaining project integrity.
See every vulnerability recorded for tealove-nanami18 →
FAQ
tealove-nanami18 is an npm package associated with the tea.xyz token reward campaign, which has been identified as containing malicious code.
The vulnerability can lead to the installation of malicious packages that may compromise your project's security and inflate developer reputation scores fraudulently.
You can use tools like Vulert to analyze your package-lock.json file for vulnerabilities and check if any malicious packages are present.
You should uninstall the package immediately using 'npm uninstall tealove-nanami18' and monitor your project for any other vulnerabilities.
Yes, Vulert provides real-time monitoring and alerts for open-source vulnerabilities in your software, using just your package-lock.json.