Skip to content

AAK-MCP-PILLMWIKI-CVE-2026-102911-001: pi-llm-wiki below 0.11.8 runs a shell on the URL its MCP capture tool is given

Severity
CRITICAL
Category
Supply Chain (supply-chain)
Scanner
agent_audit_kit/scanners/mcp_cve_pins_2026_07.py
Auto-fixable
No.
SARIF name
PiLlmWikiCaptureSourceShellInjection

What it detects

@zosmaai/pi-llm-wiki, an Obsidian-compatible wiki package for the pi coding agent that also ships an MCP server, passes the url argument of its wiki_capture_source MCP tool into a shell command, sh -c "uvx ... markitdown \"${source}\"", so a caller that controls the argument runs commands on the host (CVE-2026-102911, CVSS 3.1 9.9, CWE-77/CWE-78). Double quotes do not stop $(...) or backticks. 0.11.8 calls markitdown with an argument list and no shell (fix commit 36086703). NVD scopes it "up to 0.11.7" with no lower bound, and the shell call is in the upstream source from May 2026, months before 0.11.0, so every stated version below 0.11.8 is reported.

How to fix

Upgrade @zosmaai/pi-llm-wiki to >= 0.11.8 and pin it. Until then, do not expose the wiki MCP server to a model or caller that can choose the URL wiki_capture_source captures.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-MCP-PILLMWIKI-CVE-2026-102911-001

Limitations

Reports only a reference that states a version: a package.json dependency, a lockfile entry, or @zosmaai/pi-llm-wiki@0.x in an MCP config. Upstream registers the MCP server by its path inside node_modules, which states no version, and pi install npm:... records the package in pi's own settings, which this scanner does not read, so a machine-wide install is not seen. npm's unscoped pi-llm-wiki is a different author's package and is not matched. A file over 2 MB, or a lockfile over 32 MiB, is not read. A declaration nested more than 64 levels deep in package.json, a TOML manifest or an MCP config (an MCP server more than 62) is still judged, and reported without a line; a lockfile entry keeps its line at any depth.

References


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-PILLMWIKI-CVE-2026-102911-001.md: the page then shows that text, with the registry reference appended under it.