What happened
Chat and prompt text passed to the Claude Code CLI is pre-processed before reaching the model, so CLI slash-commands and @<path> file mentions execute/read on the host without going through AutoPilot's tool allow-list and PreToolUse hooks (CWE-73/CWE-77). In both the AutoPilot Claude Agent SDK path and the graph orchestrator block's extended_thinking SDK mode this lets a low-privilege party read host files that reach the model provider and run commands that modify CLI settings. Published 2026-11-24; fixed in 0.9.0.
Why it matters
This breaks the agent guardrail layer designed to gate what an AI coding agent is allowed to do: a prompt-injected or low-privilege party can make the agent exfiltrate host files into the model context (which can then leak in replies) and mutate the CLI's own configuration, defeating the intended tool allow-list and pre-tool permission hooks.
Attack vector
Messages starting with '/' execute CLI commands or bundled skills, and '@<path>' mentions read files/list directories on the host and attach the results to the model request. This pre-processing happens before the model call, so AutoPilot's tool allow-list and PreToolUse hooks are bypassed — the CLI reads files accessible to the copilot executor process, whose contents reach the model provider and can be echoed in replies, or runs commands that change the CLI's settings.json or switch/clear the session/model.
Affected systems
Significant-Gravitas AutoGPT >= 0.7.1, < 0.9.0
Mitigation
Upgrade to AutoGPT 0.9.0 or later. Advisory: https://github.com/Significant-Gravitas/AutoGPT/security/advisories/GHSA-hf7q-6hwp-f6v2