AAK-CHATGPT-MCP-CVE-2026-7061-PIN-001: chatgpt-mcp-server OS command injection (CVE-2026-7061, npm/git 0.1.0 or earlier)
- Severity
- HIGH
- Category
- Supply Chain (
supply-chain) - Scanner
agent_audit_kit/scanners/supply_chain.py- Auto-fixable
- No.
- SARIF name
ChatGptMcpCmdInjection
What it detects
Toowiredd/chatgpt-mcp-server <=0.1.0 has an OS command injection in src/services/docker.service.ts (the MCP/HTTP path). CVE-2026-7061 (NVD, CVSS 7.3): the package is NOT published to npm — consumers install via a git+https:// URL or GitHub shorthand in package.json. No upstream patch as of the AAK ship date; every version <=0.1.0 is vulnerable. The architectural class is also caught by AAK-MCP-STDIO-CMD-INJ-002 (TS-side stdio cmd-injection taint sink); this pin-only rule is the named-CVE companion that surfaces a discrete finding for consumers running pin-check mode and want an actionable manifest fix.
How to fix
Pin away from chatgpt-mcp-server until an upstream patch ships (track at https://github.com/Toowiredd/chatgpt-mcp-server). For the runtime shape, AAK-MCP-STDIO-CMD-INJ-002 already fires on any TS file that constructs a stdio command from network input.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-CHATGPT-MCP-CVE-2026-7061-PIN-001
Limitations
Reads the root package.json, package-lock.json, yarn.lock and pnpm-lock.yaml for a key "chatgpt-mcp-server" with any value, or for the Toowiredd/chatgpt-mcp-server repository path, and reports every version because no fix exists. A reference in a sub-directory package.json, a fork or mirror under another GitHub organisation ("gpt": "github:acme/chatgpt-mcp-server") and an npx launcher that fetches the repository from GitHub in .mcp.json are not read. A file over 2 MB, or a lockfile over 32 MiB, is not read.
References
- CVE: CVE-2026-7061
- OWASP MCP Top 10: MCP04:2025 (Software Supply Chain Attacks & Dependency Tampering), MCP05:2025 (Command Injection & Execution)
- OWASP Agentic Top 10: ASI04 (Agentic Supply Chain Vulnerabilities), ASI05 (Unexpected Code Execution (RCE))
- Incidents and advisories: NVD-CVE-2026-7061
- CSA AI Controls Matrix (AICM): AIS-08, IAM-05, 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-CHATGPT-MCP-CVE-2026-7061-PIN-001.md: the page then shows that text, with the registry reference appended under it.