Malicious Code Injection in Tealoon Package: npm Vulnerability Overview
Summary
MAL-2025-98398: Malicious code in tealoon (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
Tealoon is an npm package that is part of the tea.xyz token reward campaign. It is designed to facilitate the distribution of token rewards through various automated scripts. However, this package has been identified as malicious, containing scripts that manipulate package metadata and flood the npm registry with derivative packages, thereby compromising the integrity of the ecosystem.
Vulnerability Detail
The vulnerability in the Tealoon package originates from its association with the tea.xyz token reward campaign, which employs malicious scripts (such as auto.js and autopublish.js) to alter the package.json file. These scripts remove private flags, change version numbers, and generate random package names, leading to the pollution of the npm registry. This not only affects the reputation of developers but also poses security risks by introducing potentially harmful packages into the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tealoon
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 remove the Tealoon package from your project by executing the following command: npm uninstall tealoon. This will prevent any malicious scripts from executing until a patched version is available.
Conclusion
The Tealoon package has been identified as a malicious entity within the npm ecosystem, capable of compromising project integrity through automated scripts. It is crucial for developers to stay informed about such vulnerabilities and take proactive measures to secure their projects.
See every vulnerability recorded for tealoon →
FAQ
Tealoon is an npm package associated with the tea.xyz token reward campaign, designed to automate the generation and publication of derivative packages.
The vulnerability can lead to the pollution of the npm registry and may compromise the security and integrity of your project by introducing malicious packages.
If you have installed Tealoon, it is recommended to uninstall the package immediately and monitor your project for any unusual behavior.
Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json file. You can check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner.
Regularly update your dependencies, monitor for vulnerabilities using tools like Vulert, and review your package.json and package-lock.json files for any suspicious packages.