Skip to main content
Menu
Advisories

AutoPilot: chat text was pre-processed by the Claude Code CLI (slash commands and file mentions)

GHSA-HF7Q-6HWP-F6V2Published Updated GitHub

Description

Docker distribution (2026-10-24)

Docker Hub distribution: significantgravitas/autogpt. GitHub represents this image under ecosystem Other. The earliest currently listed stable Platform image is v0.7.1; affected image versions are subject to the same feature/configuration prerequisites described in this report. The fixed image tag is significantgravitas/autogpt:v0.9.0 (Docker Hub tag). Numeric package versions correspond to image tags prefixed with v. latest is mutable and is not the fixed-version identifier. The separate significantgravitas/auto-gpt repository distributes Classic and is not covered by this Platform image entry.

Release status (2026-10-24)

Fixed in AutoGPT Platform v0.9.0; included in v0.9.0.

Chat text is passed verbatim to the Claude Code CLI, slash-command preprocessing is disabled, and launches use an allow-listed environment. Fixes: #15910 and #15951.

Fix evidence: 4a75ca0f8cea, 9caf6447dba0.

Upgrade to v0.9.0 or later. Version numbers below identify Platform releases, whose Git tags are autogpt-platform-beta-v<VERSION>, rather than the backend Python package version.

Historical report and evidence

Technical excerpts below describe the code and environment at the time of reporting, unless explicitly identified as a later update.

Summary

AutoPilot (the copilot) runs each chat turn through the Claude Agent SDK. The SDK starts the Claude Code CLI and writes the turn's text to it. The CLI pre-processed that text before the model saw it, outside AutoPilot's tool allow-list and its PreToolUse hooks:

  • Slash commands. A message starting with / ran one of the CLI's own commands or bundled skills instead of reaching the model.
  • File mentions. An @<path> mention anywhere in the text made the CLI read that file, or list that directory, on the machine running the CLI, and add the result to the model request. Images and PDFs were attached as images and documents.

The graph orchestrator block's SDK mode (extended_thinking, with the user's own Anthropic or OpenRouter key) passed graph prompt text to the CLI the same way.

Impact

  • File read on the copilot executor host. Text in a turn could make the CLI read files the executor process can read. Their contents reached the model provider, and the model could repeat them in its reply.
  • Hosted service: this covered the backend image, plus other sessions' working directories and stored CLI session transcripts on the same executor pod.
  • Single-container image and Docker Compose: it covered every user's workspace files and stored CLI sessions on the shared volume, and the CLI's credentials file if Claude subscription mode was in use.
  • CLI commands. A turn could run CLI commands: compact or clear the CLI session, switch the model for the turn, or change the CLI's settings file. On the hosted service that settings file is shared by every turn on the executor pod.
  • Who can put text into a turn:
  • the signed-in user;
  • members of a server, group or channel where a chat bot is linked, whose messages run on the linking owner's account;
  • graph authors, through the orchestrator and AutoPilot blocks;
  • indirectly, text from tool output (web pages, files, API responses) that is carried into a later turn's history context.

Affected versions

  • Potentially affected since the AutoPilot SDK path arrived in autogpt-platform-beta-v0.6.49. The orchestrator's SDK mode arrived in autogpt-platform-beta-v0.6.54.
  • Confirmed with Claude Code CLI 2.1.247 and 2.1.284. The exact first affected release is unknown.
  • All releases before autogpt-platform-beta-v0.9.0 are affected, up to and including autogpt-platform-beta-v0.8.4.
  • Fixed in autogpt-platform-beta-v0.9.0.

Fix

See the release status above for the shipped remediation and its exact release and commit references.

Recovery

  • Investigation. If you want to investigate earlier use, preserve the stored CLI sessions (cli-sessions/ in workspace storage) and the local CLI projects/ directories before upgrading. Mentioned files appear there as "type": "attachment" entries. Image and PDF contents are base64, so a plain-text search misses them.
  • Content at rest. The fix removes mention entries from a session only when that session is next used. Sessions that are never resumed keep them until deleted.
  • Self-hosted operators:
  • If Claude subscription mode was used, rotate that sign-in.
  • Check the CLI's settings.json for changes.
  • Rotate any credential your review of the stored sessions or provider logs implicates.

Workarounds

None is complete. CHAT_USE_CLAUDE_AGENT_SDK=false makes the baseline path the default, but a turn can still request the SDK path. Unlinking chat bots from shared servers and groups limits who can put text into a turn.

References

References

GitHub · Significant-Gravitas/AutoGPT