Malicious Code Detected in @grafanacloud/test-utils: A Critical Security Concern
Summary
MAL-2025-6249: Malicious code in @grafanacloud/test-utils (npm). Affects @grafanacloud/test-utils versions >= 1.0.0. 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 package @grafanacloud/test-utils is an npm utility designed for testing purposes within the Grafana Cloud ecosystem. It provides developers with tools to facilitate testing and enhance productivity. However, recent analysis has revealed that certain versions of this package contain malicious code that compromises security, making it essential for users to be aware of the risks associated with its use.
Vulnerability Detail
The vulnerability in @grafanacloud/test-utils stems from its communication with domains linked to malicious activities and the execution of commands that can lead to harmful behavior. This issue was identified by the OpenSSF Package Analysis project, which flagged version 1.0.0 as malicious. The ramifications of this vulnerability include potential data breaches, unauthorized access to systems, and the execution of harmful commands that could disrupt normal operations.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @grafanacloud/test-utils
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
If immediate updating is not possible, consider removing the package from your project until a secure version is available. You can do this by running: npm uninstall @grafanacloud/test-utils. Additionally, monitor your application for any unusual behavior that may indicate exploitation of this vulnerability.
Conclusion
The discovery of malicious code in the @grafanacloud/test-utils package highlights the importance of vigilance in managing open-source dependencies. Users are urged to update to the latest version or remove the package to safeguard their applications from potential threats.
See every vulnerability recorded for @grafanacloud/test-utils →
FAQ
Versions 1.0.0, 1.0.2, and 1.0.3 of @grafanacloud/test-utils have been identified as malicious.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring any signup.
Consider removing the package from your project until a secure version is available and monitor your application for any unusual behavior.
Using the affected package may lead to data breaches, unauthorized access, and execution of harmful commands that disrupt normal operations.
Regularly check for updates from the OpenSSF Package Analysis project and utilize tools like Vulert to receive real-time alerts for vulnerabilities in your dependencies.