Malicious Code Detected in @grafanacloud/test-utils: A Critical Security Concern

@grafanacloud/test-utils Updated 02 Oct 2025

Summary

26/07/2025
CRITICAL
No i
Critical
Not published

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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 →

Share this vulnerability

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.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback