Critical Malicious Code Vulnerability in astradb-datasource Package
Summary
MAL-2025-5763: Malicious code in astradb-datasource (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 astradb-datasource package is an npm library designed to facilitate data sourcing and management for AstraDB, a cloud database service. It provides developers with tools to interact with AstraDB efficiently. However, this package has been identified to contain malicious code, posing significant security risks to systems that utilize it.
Vulnerability Detail
The vulnerability originates from the inclusion of embedded malicious code within the astradb-datasource package. This code can compromise any computer that has the package installed, potentially allowing unauthorized access to sensitive information such as secrets and keys. The ramifications of this vulnerability are severe, as it could lead to full system compromise and data breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall astradb-datasource
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 avoid using the astradb-datasource package altogether and look for alternative libraries that provide similar functionality without the associated risks.
Conclusion
The astradb-datasource package contains malicious code that poses a significant threat to systems using it. Immediate action is required to remove the package and secure any compromised systems. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in the future.
See every vulnerability recorded for astradb-datasource →
FAQ
You should remove the package immediately and rotate any secrets or keys stored on the affected system.
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.
Failure to address this vulnerability could lead to unauthorized access to your system, data breaches, and potential loss of sensitive information.
The best mitigation strategy is to remove the package and seek alternative solutions. There are no effective workarounds that can fully secure your system while the package remains installed.
Utilize tools like Vulert to monitor your dependencies for vulnerabilities in real-time, ensuring you are alerted to any issues as they arise.