Malicious Code Injection in eclipseenvoy: A Threat to npm Users
Summary
MAL-2025-171126: Malicious code in eclipseenvoy (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
eclipseenvoy is an npm package that is part of the tea.xyz token reward campaign. It is designed to facilitate interactions within the tea protocol ecosystem. However, it has been compromised, leading to significant security concerns. The package's functionality is undermined by the presence of malicious scripts that manipulate its metadata and behavior.
Vulnerability Detail
The vulnerability originates from a malicious payload embedded within the eclipseenvoy package. This payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names. The intent is to inflate developer reputation scores through the automatic generation and publication of derivative packages. This not only pollutes the npm registry but also poses risks to developers who may unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall eclipseenvoy
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 eclipseenvoy package from your project by executing: npm uninstall eclipseenvoy. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The eclipseenvoy package has been compromised, leading to significant security vulnerabilities. It is crucial for developers to take immediate action by updating or removing the package to safeguard their applications. Utilizing tools like Vulert can further enhance security by providing real-time monitoring of vulnerabilities.
See every vulnerability recorded for eclipseenvoy →
FAQ
The vulnerability involves malicious code that alters package metadata and publishes compromised versions to the npm registry.
You can use Vulert, which monitors vulnerabilities in open-source packages. Visit Vulert Scanner to check your application without needing to sign up.
If you have installed eclipseenvoy, it is recommended to uninstall it immediately and check for any updates or patches.
Yes, using compromised packages can lead to security breaches, data leaks, and other malicious activities within your application.
Vulert uses the package-lock.json file to monitor and alert in real-time for open-source vulnerabilities, ensuring your application remains secure.