Critical Malicious Code Vulnerability in firestore-search-engine Package
Summary
MAL-2025-191092: Malicious code in firestore-search-engine (npm). Affects firestore-search-engine versions 1.2.3. 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 firestore-search-engine package is an npm library designed to facilitate search functionalities within Firestore databases. It is commonly used in web applications that require efficient data retrieval. However, this package has been identified to contain malicious code, posing significant security risks to any system utilizing it.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the firestore-search-engine package. This code can compromise the entire system where the package is installed, allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of the code is classified under CWE-506, indicating that it embeds harmful functionalities that can lead to severe security breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall firestore-search-engine
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
Currently, there are no effective workarounds to mitigate the risks posed by this vulnerability other than removing the package and securing the system.
Conclusion
The firestore-search-engine package has been identified as containing malicious code that poses a significant security threat. Immediate action is required to remove the package and secure any sensitive information. Users are encouraged to utilize tools like Vulert to monitor for vulnerabilities in their applications.
See every vulnerability recorded for firestore-search-engine →
FAQ
You should immediately remove the package and rotate any secrets or keys stored on the affected machine.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
As of now, there is no patched version available. It is crucial to remove the package entirely.
Failing to address this vulnerability can lead to unauthorized access to sensitive data and complete system compromise.
It is highly discouraged to use this package in any capacity due to the inherent risks associated with the embedded malicious code.