Malicious Code Injection in tealoveness23: A Threat to npm Ecosystem
Summary
MAL-2025-168749: Malicious code in tealoveness23 (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 tealoveness23 is part of the tea.xyz token reward campaign that has infiltrated the npm ecosystem. It is designed to manipulate developer reputation scores by automatically generating and publishing derivative packages with randomized names. This package can significantly affect the integrity of the npm registry by flooding it with malicious variants.
Vulnerability Detail
The vulnerability in tealoveness23 originates from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior not only compromises the security of the npm registry but also leads to the proliferation of potentially harmful packages that can mislead developers and users alike. The autopublish scripts included in the package are specifically designed to automate this malicious activity, making it a significant threat to the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tealoveness23
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 manually remove the tealoveness23 package from your project by executing the following command in your terminal: npm uninstall tealoveness23. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities in real-time.
Conclusion
The tealoveness23 package poses a significant threat to the npm ecosystem due to its malicious code designed to manipulate package publishing. It is crucial for developers to be vigilant, remove any affected packages, and utilize monitoring tools like Vulert to safeguard their projects against such vulnerabilities.
See every vulnerability recorded for tealoveness23 →
FAQ
Tealoveness23 is an npm package associated with the tea.xyz token reward campaign, known for its malicious behavior of flooding the npm registry with derivative packages.
The vulnerability can lead to the introduction of malicious packages into your project, compromising its security and integrity.
You should uninstall the package immediately and monitor your project for any other vulnerabilities.
Yes, tools like Vulert can help monitor your project for open-source vulnerabilities in real-time 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.