CVE-2026-89039

Arbitrary file read via the convert_playwright_script prompt in mcp-k6

Published Oct 5, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
Type Values Removed Values Added
First Time appeared Grafana
Grafana mcp K6
Vendors & Products Grafana
Grafana mcp K6
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
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-22

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

  • CWE-424

    Improper Protection of Alternate Path

Sources

Status
PUBLISHED
Assigner
GRAFANA
Published
Updated
Oct 5, 2026, 7:36 PM
Reserved
Sep 10, 2026, 4:41 PM
Status
Deferred
Published
Oct 5, 2026, 3:17 PM
Modified
Oct 6, 2026, 4:08 PM