Malicious Code Injection in eclipsedreamer Package: npm Vulnerability Overview
Summary
MAL-2025-171124: Malicious code in eclipsedreamer (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 eclipsedreamer package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been linked to various malicious activities. The package's primary function is to facilitate the development and sharing of JavaScript code, but it has been compromised to include harmful scripts that can affect developers' reputations and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the eclipsedreamer package originates from its association with the tea.xyz token reward campaign. It contains malicious code that modifies the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior leads to the automatic generation and publication of derivative packages, which can pollute the npm registry and inflate developer reputation scores fraudulently. The ramifications include potential security risks for developers who unknowingly use these compromised packages, as well as damage to the overall trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall eclipsedreamer
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 eclipsedreamer package from your project if it is not essential. Use the command: 'npm uninstall eclipsedreamer'. Additionally, consider using alternative packages that do not have known vulnerabilities.
Conclusion
The eclipsedreamer package has been identified as containing malicious code that can compromise the integrity of the npm ecosystem. It is vital for developers to stay informed about such vulnerabilities and take necessary actions to protect their projects. Regularly updating packages and utilizing monitoring tools like Vulert can help mitigate these risks.
See every vulnerability recorded for eclipsedreamer →
FAQ
The eclipsedreamer package is a JavaScript library available on npm, primarily used for developing and sharing code. However, it has been compromised to include malicious scripts.
The vulnerability can lead to the automatic generation of malicious packages that may compromise your project's security and integrity, as well as affect your reputation as a developer.
If you have installed the eclipsedreamer package, it is crucial to update it to the latest version or remove it from your project to avoid potential security risks.
You can use tools like Vulert, which monitors and alerts you in real-time for open-source vulnerabilities in your software. You can check your application for vulnerabilities using the Vulert playground without any signup.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.