Malicious Code Injection in ethanallen Package: npm Vulnerability Summary
Summary
MAL-2025-171171: Malicious code in ethanallen (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 ethanallen package is part of the npm ecosystem, primarily used for various JavaScript applications. It is often utilized for its functionalities in managing dependencies and enhancing developer workflows. However, this package has been identified as part of a malicious campaign that exploits npm's publishing mechanisms, leading to significant security concerns.
Vulnerability Detail
The vulnerability in the ethanallen package originates from its association with the tea.xyz token reward campaign. This malicious code is designed to modify the package.json file by removing private flags, altering version numbers, and generating random package names. The intent is to inflate developer reputation scores for token rewards while polluting the npm registry with derivative packages. This poses a risk of unintentional dependency on compromised packages, potentially leading to further exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ethanallen
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 ethanallen package from your project by executing 'npm uninstall ethanallen'. This will prevent any malicious code from executing while you assess alternative packages or wait for a secure update.
Conclusion
The ethanallen package has been identified as containing malicious code that can compromise your application. It is essential to take immediate action by updating or removing the package to safeguard your project from potential threats. Utilizing tools like Vulert can help you monitor for vulnerabilities effectively.
See every vulnerability recorded for ethanallen →
FAQ
The ethanallen package is a JavaScript library used within the npm ecosystem, often for managing dependencies in applications.
The malicious code modifies your package.json, potentially leading to the installation of compromised packages that can harm your application and its users.
If you have installed ethanallen, it is recommended to uninstall it immediately and check for any updates or patches from the package maintainers.
Yes, you can use Vulert, which monitors your package-lock.json for vulnerabilities in real-time without requiring code access or installation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.