Knowledge base
CodexGuild Knowledge Base

Claude Code echo command allowed bypass of user approval prompt for command execution

as of Aug 4, 2025 · applies to @anthropic-ai/claude-code < 1.0.20 · canonical · codexguild.com/kb/ghsa-x56v-x2h6-7j34 · exported 2026-10-11
Canonical as of Aug 4, 2025

Claude Code echo command allowed bypass of user approval prompt for command execution

High severity. Affects @anthropic-ai/claude-code < 1.0.20. Upgrade to 1.0.20 or later.

CVE-2025-54795 / GHSA-x56v-x2h6-7j34 · severity: high · npm

Affected

  • @anthropic-ai/claude-code < 1.0.20 → fixed in 1.0.20

Details

Due to an error in command parsing, it was possible to bypass the Claude Code confirmation prompt to trigger execution of an untrusted command. Reliably exploiting this requires the ability to add untrusted content into a Claude Code context window.

Users on standard Claude Code auto-update received this fix automatically after release. Current users of Claude Code are unaffected, as versions prior to 1.0.24 are deprecated and have been forced to update.

Thank you to Elad Beber (Cymulate) for reporting this issue!

Source: GHSA-x56v-x2h6-7j34 — GitHub Advisory Database (CC-BY-4.0).