AAK-MCP-AISDLC-CVE-2026-117558-001: ai-sdlc MCP server below 0.32.0: the repo argument reaches a gh command string
- Severity
- HIGH
- Category
- Supply Chain (
supply-chain) - Scanner
agent_audit_kit/scanners/mcp_cve_pins_2026_07.py- Auto-fixable
- No.
- SARIF name
AiSdlcMcpServerRepoShellInjection
What it detects
The MCP server of the ai-sdlc Claude Code plugin (npm @ai-sdlc/plugin-mcp-server, ai-sdlc-framework/ai-sdlc) built the gh issue view and gh pr view commands of its check_issue and check_pr_status tools as strings holding the tool's repo argument and ran them with execSync, so a repo value carrying shell metacharacters, which a client or a prompt-injected agent can send, runs commands as the server's user (CVE-2026-117558, CVSS 7.8, CWE-78). Checked in the published npm packages: 0.8.1, the first release, to 0.31.2 build those strings, and 0.32.0 runs gh through execFileSync with an argument array and accepts only an owner/name repo (ai-sdlc-framework/ai-sdlc#1982).
How to fix
Upgrade @ai-sdlc/plugin-mcp-server to 0.32.0 or later and pin it. Where the ai-sdlc Claude Code plugin installs the server for you, check the version it installs: its plugin.json names one in runtimeDependencies.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-MCP-AISDLC-CVE-2026-117558-001
Limitations
Reports @ai-sdlc/plugin-mcp-server below 0.32.0 where a version is stated: a package.json or lockfile entry, or the package an npx launch in an MCP config names, reporting a range that admits an affected version. latest was 0.42.0 on 2026-11-11 and states no version, so an unversioned reference is not reported. The ai-sdlc Claude Code plugin runs the server from its own node_modules by path and names the version in its plugin.json runtimeDependencies, which AAK does not read, so a plugin install is not reported; that file on the project's main branch named 0.9.2 on 2026-11-11. It reads the name and version, not which tools the client lets the model call. 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
- CVE: CVE-2026-117558
- OWASP MCP Top 10: MCP05:2025 (Command Injection & Execution), MCP04:2025 (Software Supply Chain Attacks & Dependency Tampering)
- OWASP Agentic Top 10: ASI04 (Agentic Supply Chain Vulnerabilities), ASI05 (Unexpected Code Execution (RCE))
- Adversa AI MCP Top 25 (AAK-defined ids): ADV-INJECT-01 (Shell Injection via MCP)
- 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-AISDLC-CVE-2026-117558-001.md: the page then shows that text, with the registry reference appended under it.