Malicious Code Detected in enclose-eslint: A Critical Security Alert
Summary
MAL-2025-192352: Malicious code in enclose-eslint (npm). Affects enclose-eslint versions 99.99.2. 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
enclose-eslint is an npm package designed to facilitate the use of ESLint in JavaScript projects. It aims to streamline the process of linting code to ensure adherence to coding standards and best practices. However, this package has been flagged for malicious behavior, raising significant security concerns for developers relying on it.
Vulnerability Detail
The vulnerability in enclose-eslint, identified as MAL-2025-192352, originates from its communication with a domain linked to malicious activities. This package not only connects to potentially harmful external resources but also executes commands that could compromise the security of the host system. Such behavior can lead to unauthorized access, data breaches, and the execution of harmful scripts, posing a severe risk to users and their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall enclose-eslint
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 workaround, consider using alternative linting packages that do not exhibit malicious behavior. You can explore other ESLint-compatible packages that are well-reviewed and have a strong community backing. Additionally, ensure to regularly audit your dependencies for vulnerabilities.
Conclusion
The enclose-eslint package has been identified as malicious, posing significant risks to developers and their applications. It is essential to remove this package and consider safer alternatives to maintain the integrity and security of your codebase.
See every vulnerability recorded for enclose-eslint →
FAQ
enclose-eslint is an npm package used for integrating ESLint into JavaScript projects, helping developers maintain code quality.
The malicious behavior was identified by the OpenSSF Package Analysis project, which flagged the package for communicating with a harmful domain and executing malicious commands.
If you have enclose-eslint installed, it is recommended to uninstall the package immediately and consider using alternative linting tools.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground without any signup.
Using a malicious package can lead to unauthorized access to your system, data breaches, and the execution of harmful scripts, compromising the security of your application.