Skip to main content

CVE-2026-89039: CWE-22 in Grafana mcp-k6

0
Medium
VulnerabilityCVE-2026-89039cvecve-2026-89039cwe-22cwe-424
Published: 10/05/2026 (10/05/2026, 14:52:41 UTC)
Source: CVE Database V5
Vendor/Project: Grafana
Product: mcp-k6

Description

A caller who can invoke the convert_playwright_script prompt in mcp-k6 can pass a bare file path as the playwright_script argument and receive the contents of any file readable by the user running the server, including SSH keys and cloud credentials in that user's home directory (path traversal). The working-directory restriction applied to '@'-prefixed paths can also be bypassed with a symbolic link inside the working directory that points outside it.

CVSS v3.1

Score 6.5medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected software

Grafana

mcp-k6

Affected versions
>=0.3.0 <0.7.0
GitHub Actionsmore threats →ai
grafana/mcp-k6
pkg:github/grafana/mcp-k6
Affected versions
=0.3.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/05/2026, 15:18:16 UTC

Technical Analysis

The vulnerability exists in the convert_playwright_script prompt of the Grafana Mcp K6 server, where the playwright_script argument accepts file paths. While '@'-prefixed paths are restricted to the server's current working directory, bare paths are resolved via an undocumented code path without such restrictions. This allows an attacker able to invoke the prompt to read any file accessible by the server user, including files outside the working directory. Additionally, '~' expands to the user's home directory, enabling direct access to credential files. The working-directory restriction can also be bypassed using symbolic links inside the working directory that point outside it, as paths are not canonicalized before restriction checks. All releases from v0.3.0 onward are affected, with v0.3.0 and v0.4.0 applying no restrictions to either path form.

Potential Impact

An attacker with the ability to invoke the convert_playwright_script prompt can read arbitrary files on the server with the privileges of the server user. This includes sensitive files such as SSH private keys, potentially leading to credential compromise. The vulnerability does not allow code execution or denial of service but results in confidentiality loss.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict access to the convert_playwright_script prompt to trusted users only and monitor for unauthorized usage. Avoid running the server with excessive privileges to limit file access scope.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GRAFANA
Date Reserved
2026-09-10T16:41:38.640Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6ac3bc692cdf04f6560fa853

Added to database: 10/05/2026, 15:04:09 UTC

Last enriched: 10/05/2026, 15:18:16 UTC

Last updated: 10/05/2026, 20:34:04 UTC

Views: 13

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses