AAK-MCP-K6-CVE-2026-89039-001: Grafana mcp-k6 0.3.0 to 0.6.1: the convert_playwright_script prompt reads any file
- Severity
- MEDIUM
- Category
- Supply Chain (
supply-chain) - Scanner
agent_audit_kit/scanners/container_image_pins.py- Auto-fixable
- No.
- SARIF name
McpK6PlaywrightScriptFileRead
What it detects
Grafana's mcp-k6, an MCP server for the k6 load-testing tool, has a convert_playwright_script prompt that takes a script path. From 0.3.0, when the prompt arrived, until 0.7.0, a caller could pass a bare path and get back any file the server's user can read, SSH keys and cloud credentials included, and a symlink inside the working directory took an @-prefixed path outside it (CVE-2026-89039, CVSS 3.1 6.5, CWE-22/CWE-424). It is a Go binary, and its recommended install is the Docker Hub image grafana/mcp-k6. In 0.7.0 a bare value is script text, never a path, and an @ reference must name a .js/.ts-family file inside the working directory, read through a handle that will not leave it, links included (grafana/mcp-k6#191).
How to fix
Upgrade mcp-k6 to 0.7.0 or later. Docker Hub had no 0.7.0 image on 2026-10-06, so until one is pushed, run the 0.7.0 release binary or build the image from the v0.7.0 tag, and do not expose the prompt to untrusted callers.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-MCP-K6-CVE-2026-89039-001
Limitations
Reads grafana/mcp-k6 image references from 0.3.0 up to 0.7.0, and an untagged or latest reference, because latest was the 0.6.1 image on 2026-10-06. That needs revisiting once a 0.7.0 image is pushed. Tags 0.1.0 and 0.2.0 predate the prompt and are not reported. The bare Docker Hub name is matched, so docker.io/grafana/mcp-k6 is not read. A Homebrew install or a release binary states no version AAK reads.
References
- CVE: CVE-2026-89039
- OWASP MCP Top 10: MCP04:2025 (Software Supply Chain Attacks & Dependency Tampering), MCP05:2025 (Command Injection & Execution)
- OWASP Agentic Top 10: ASI02 (Tool Misuse and Exploitation), ASI04 (Agentic Supply Chain Vulnerabilities)
- Adversa AI MCP Top 25 (AAK-defined ids): ADV-INJECT-02 (Path Manipulation)
- CSA AI Controls Matrix (AICM): AIS-07, STA-08
All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-MCP-K6-CVE-2026-89039-001.md: the page then shows that text, with the registry reference appended under it.