Malicious Code Injection in prospective_elephant-teagooddev Package
Summary
MAL-2025-107366: Malicious code in prospective_elephant-teagooddev (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 prospective_elephant-teagooddev package is part of the tea.xyz token reward campaign, which has been known to flood the npm registry with various packages. This package is designed to facilitate the generation and publication of derivative packages, often with randomized names, to inflate developer reputation scores in exchange for tea protocol token rewards. Its functionality is compromised due to the presence of malicious scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability originates from malicious code embedded within the prospective_elephant-teagooddev package. This code includes autopublish scripts that modify the package.json file by removing private flags, altering version numbers, and generating random package names. The continuous republishing of these variants leads to pollution of the npm registry, potentially affecting other developers and projects relying on npm packages. The ramifications include reputational damage, security risks, and the degradation of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall prospective_elephant-teagooddev
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 prospective_elephant-teagooddev package and look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using tools like Vulert to monitor your package-lock.json for vulnerabilities.
Conclusion
The prospective_elephant-teagooddev package contains malicious code that poses significant risks to developers and the npm ecosystem. Immediate action is required to remove the package and monitor for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your projects.
See every vulnerability recorded for prospective_elephant-teagooddev →
FAQ
It is a package associated with the tea.xyz token reward campaign that generates and publishes derivative packages to inflate developer reputation scores.
The malicious code modifies your package.json file, removes private flags, and can lead to the pollution of the npm registry, affecting the integrity of your project.
You should uninstall the package immediately using 'npm uninstall prospective_elephant-teagooddev' and check your project for any other affected dependencies.
Yes, regularly monitor your dependencies using tools like Vulert, which can alert you to vulnerabilities in real-time without requiring access to your code.
You can use the Vulert playground at Vulert Scanner to check your application for vulnerabilities without needing to sign up.