Critical Malicious Code Vulnerability in grafana-json-datasource Package
Summary
MAL-2025-5698: Malicious code in grafana-json-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 grafana-json-datasource package is an npm module designed to facilitate the integration of JSON data sources into Grafana dashboards. It allows users to visualize data from various JSON APIs seamlessly. However, this package has been identified to contain malicious code that poses significant security risks to systems utilizing it.
Vulnerability Detail
The vulnerability originates from embedded malicious code within the grafana-json-datasource package. This code can compromise any computer that has the package installed or running, leading to potential unauthorized access to sensitive information, including secrets and keys. The malicious nature of this code is classified under CWE-506, indicating that it appears to be intentionally harmful. Users are advised to treat any system running this package as fully compromised.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall grafana-json-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 workaround, ensure that all secrets and keys stored on the affected computer are rotated immediately from a different, secure machine. Additionally, monitor the system for any unusual activity that may indicate ongoing compromise.
Conclusion
The grafana-json-datasource package has a critical vulnerability due to embedded malicious code, which can lead to severe security risks. Immediate action is required to remove the package and secure any sensitive information. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for grafana-json-datasource →
FAQ
It is an npm module that allows users to integrate JSON data sources into Grafana dashboards for data visualization.
The vulnerability involves embedded malicious code that can compromise systems running the package, leading to unauthorized access to sensitive information.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
Remove the grafana-json-datasource package immediately and rotate any sensitive information stored on the affected system.
Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities using just your package-lock.json file.