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

Impact

The convert_playwright_script prompt in the k6 MCP server accepts a file path as its playwright_script argument. Documented paths prefixed with '@' 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. An attacker able to invoke the prompt can read any file readable by the user running the server, including sensitive credential files such as SSH private keys. This flaw corresponds to path traversal (CWE-22) and script interpretation (CWE-424), leading to unauthorized information disclosure.

Affected Systems

This vulnerability affects Grafana’s k6 MCP server. All releases from version 0.3.0 onward are impacted, with releases 0.3.0 and 0.4.0 applying no restriction on either path form. The affected component is the convert_playwright_script prompt within the k6 MCP server.

Risk and Exploitability

The CVSS score of 6.5 indicates moderate severity. No EPSS data is available, and the vulnerability is not listed in the CISA KEV catalog. Because the prompt can be invoked by any user with access to the server’s interface or API, the attack vector can be remote or local depending on user reach. Exploitation requires only the ability to supply a file path to the prompt; the code path bypasses permission checks, making the vulnerability readily exploitable by attackers who can reach the prompt.

Generated by OpenCVE AI on October 5, 2026 at 16:21 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a patched version of Grafana k6 MCP once the vendor releases a fix that reinstitutes working‑directory restrictions or properly canonicalizes paths.
  • Restrict access to the convert_playwright_script prompt to trusted administrators by configuring role‑based access controls or disabling the feature for untrusted users.
  • Audit the server’s current working directory and filesystem permissions to ensure that sensitive files are not inadvertently exposed to the server process.
  • Monitor the API and prompt logs for abnormal file read requests and investigate any unexpected access patterns.

Generated by OpenCVE AI on October 5, 2026 at 16:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GRAFANA

Published:

Updated: 2026-10-05T15:16:20.045Z

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 : Received

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

Modified: 2026-10-05T16:17:17.347

Link: CVE-2026-89039

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-05T16:30:20Z

Weaknesses
  • CWE-22

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

  • CWE-424

    Improper Protection of Alternate Path