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.
Published: 2026-10-05
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Information Disclosure via arbitrary file reads
Action: Apply Patch
AI Analysis

Impact

The convert_playwright_script prompt in Grafana’s k6 MCP server allows a caller to provide an arbitrary file path as the playwright_script argument. When a bare path is supplied, the server bypasses its intended working‑directory checks and reads the file, returning its contents to the caller. This permits the disclosure of any file readable by the server process, including sensitive data such as SSH keys or cloud credentials residing in the process owner’s home directory. Additionally, the enforcement of the working‑directory restriction for ‘@’-prefixed paths can be circumvented by creating a symbolic link inside the working directory that points outside it.

Affected Systems

This vulnerability affects Grafana’s k6 MCP (mcp‑k6) component. All installed releases of the component remain susceptible until the vendor releases a patch that restores proper path restrictions and input validation. The flaw resides specifically in the convert_playwright_script prompt handling within the MCP server.

Risk and Exploitability

The CVSS score of 6.5 indicates moderate severity. No EPSS data is available, and the issue is not listed in CISA’s KEV catalog, implying it is not a known, actively exploited vulnerability. However, the vulnerability is exploitable by any user who can invoke the convert_playwright_script prompt through the MCP API or interface, which may be remote or local depending on network exposure. Exploitation requires only the ability to supply a file path; once the prompt is invoked, the server reads and returns the file contents without performing further authorization checks.

Generated by OpenCVE AI on October 5, 2026 at 22:13 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor's patch for Grafana k6 MCP once it is released.
  • Restrict access to the convert_playwright_script prompt to privileged users by enforcing role‑based access controls or disabling the feature for untrusted accounts.
  • Limit the server process’s filesystem permissions so that it cannot read sensitive files, or move those files out of the process’s home directory.
  • Monitor the MCP API or prompt logs for abnormal file read requests and investigate any unexpected access patterns.

Generated by OpenCVE AI on October 5, 2026 at 22:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 06 Oct 2026 21:15:00 +0000

Type Values Removed Values Added
First Time appeared Grafana
Grafana mcp K6
Vendors & Products Grafana
Grafana mcp K6

Mon, 05 Oct 2026 20:15:00 +0000

Type Values Removed Values Added
Description The convert_playwright_script prompt in the k6 MCP server accepts a file path as its playwright_script argument. Paths given in the documented '@'-prefixed form are restricted to the server's current working directory, but a bare path is resolved by a separate undocumented code path that applies no such restriction. A caller able to invoke the prompt can therefore read any file readable by the user running the server, including files outside the working directory, and receives the file contents in the prompt response. A leading '~' is expanded to the user's home directory, so credential files such as SSH private keys are directly addressable. The working-directory restriction is additionally bypassable through a symbolic link inside the working directory that points outside it, because the path is not canonicalized before the restriction is applied. All releases from v0.3.0 onward are affected; releases v0.3.0 and v0.4.0 apply no restriction to either form. 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.
Title CVE-2026-89039 CVE Record Arbitrary file read via the convert_playwright_script prompt in mcp-k6

Mon, 05 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 05 Oct 2026 15:00:00 +0000

Type Values Removed Values Added
Description The convert_playwright_script prompt in the k6 MCP server accepts a file path as its playwright_script argument. Paths given in the documented '@'-prefixed form are restricted to the server's current working directory, but a bare path is resolved by a separate undocumented code path that applies no such restriction. A caller able to invoke the prompt can therefore read any file readable by the user running the server, including files outside the working directory, and receives the file contents in the prompt response. A leading '~' is expanded to the user's home directory, so credential files such as SSH private keys are directly addressable. The working-directory restriction is additionally bypassable through a symbolic link inside the working directory that points outside it, because the path is not canonicalized before the restriction is applied. All releases from v0.3.0 onward are affected; releases v0.3.0 and v0.4.0 apply no restriction to either form.
Title CVE-2026-89039 CVE Record
Weaknesses CWE-22
CWE-424
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GRAFANA

Published:

Updated: 2026-10-05T19:36:42.166Z

Reserved: 2026-09-10T16:41:38.640Z

Link: CVE-2026-89039

cve-icon Vulnrichment

Updated: 2026-10-05T15:15:03.720Z

cve-icon NVD

Status : Deferred

Published: 2026-10-05T15:17:23.130

Modified: 2026-10-06T16:08:43.180

Link: CVE-2026-89039

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-06T20:57:36Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-424

    Improper Protection of Alternate Path