Critical Malicious Code Vulnerability in milvus-js Package
Summary
MAL-2026-229: Malicious code in milvus-js (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
milvus-js is a JavaScript client for Milvus, an open-source vector database designed for managing and searching large-scale vector data. It allows developers to interact with the Milvus database seamlessly, providing functionalities such as data insertion, querying, and management. However, the milvus-js package has been compromised, leading to a significant security vulnerability that can affect any system using it.
Vulnerability Detail
The milvus-js package contains malicious code that compromises any computer where it is installed. This vulnerability originates from a malicious actor who embedded harmful code within the package, which can lead to unauthorized access and control over the affected system. Users should consider their systems fully compromised, and all sensitive information, including secrets and keys, should be rotated immediately. The malicious code can persist even after the package is removed, posing ongoing risks to system security.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall milvus-js
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, it is recommended to avoid using the milvus-js package until a secure version is released. Additionally, consider using alternative packages that provide similar functionalities without the associated risks.
Conclusion
The milvus-js package has been identified as containing malicious code, posing a significant security threat to any system using it. Immediate action is required to remove the package and secure sensitive information. Users are encouraged to monitor their dependencies and consider alternatives until a secure version is released.
See every vulnerability recorded for milvus-js →
FAQ
You should remove the milvus-js package immediately and rotate any sensitive information stored on your system.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Failing to address this vulnerability can lead to unauthorized access to your system, data breaches, and potential loss of sensitive information.
Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json file.
While removing the package is essential, there is no guarantee that all malicious software will be removed. It is advisable to perform a thorough security audit of your system.