Malicious Code Detected in elasticsearch-collections-client Package
Summary
MAL-2025-19307: Malicious code in elasticsearch-collections-client (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 elasticsearch-collections-client package is a Node.js client designed to facilitate interactions with Elasticsearch collections. It provides developers with a streamlined way to manage and query data within Elasticsearch, offering features such as data retrieval, indexing, and collection management. However, this package has been identified to contain malicious code, posing significant risks to users who integrate it into their applications.
Vulnerability Detail
The vulnerability in the elasticsearch-collections-client package stems from the inclusion of malicious code that can compromise the security and integrity of applications utilizing this package. This code may lead to unauthorized access, data breaches, or other malicious activities. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall elasticsearch-collections-client
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 measure, users can avoid using the elasticsearch-collections-client package and instead utilize other libraries that provide similar functionality without the associated risks. It is essential to review the security of any alternative packages before integration.
Conclusion
The detection of malicious code in the elasticsearch-collections-client package highlights the importance of vigilance in managing open-source dependencies. Users are advised to remove the affected package and seek alternatives to safeguard their applications from potential threats.
See every vulnerability recorded for elasticsearch-collections-client →
FAQ
It is a Node.js client for managing and querying data in Elasticsearch collections.
The package contains code that can lead to unauthorized access and potential data breaches.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability.
Currently, there is no patched version available for the elasticsearch-collections-client package.
You should remove the package and consider using a secure alternative to avoid potential security risks.