CVE-2026-89039: CWE-22 in Grafana 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
Affected software
Grafana
mcp-k6
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.