Malicious Code Injection in Greene-Teadev Package
Summary
MAL-2025-103375: Malicious code in greene-teadev (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 greene-teadev package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the generation and publication of derivative packages, which can inflate developer reputation scores in exchange for tea protocol token rewards. However, it has been identified as containing malicious scripts that compromise the integrity of the npm registry.
Vulnerability Detail
The vulnerability originates from the greene-teadev package, which includes malicious code that modifies the package.json file to remove private flags and alters version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This behavior can lead to a significant compromise of the npm ecosystem, affecting developers and users alike by introducing untrusted code into their projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall greene-teadev
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 greene-teadev package from your project by executing the following command: npm uninstall greene-teadev. Additionally, consider using alternative packages that do not exhibit malicious behavior.
Conclusion
The greene-teadev package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry with untrusted packages. It is crucial to take immediate action by updating or removing the package to protect your project from potential security threats.
See every vulnerability recorded for greene-teadev →
FAQ
Greene-teadev 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, removes private flags, and introduces untrusted packages into your project, which can lead to security vulnerabilities.
If you have installed the greene-teadev package, it is recommended to uninstall it immediately and check for any other affected packages in your project.
Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software using just the package-lock.json file. You can check your application for vulnerabilities using the Vulert playground without any signup.
Regularly update your packages, monitor for vulnerabilities using tools like Vulert, and review the dependencies in your project for any malicious behavior.