CVE-2025-54795: Claude Code echo command allowed bypass of user approval prompt for command execution

Published Aug 4, 2025
·
Updated

Claude Code is an agentic coding tool. In versions below 1.0.20, an error in command parsing makes it 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. This is fixed in version 1.0.20.

Other sources

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!

GitHub

Affected Software

2 affected componentsFixes available
npm/@anthropic-ai/claude-code<1.0.20
1.0.20
anthropic Claude Code Node.js<1.0.20

Event History

Aug 4, 2025
Advisory Published
via GitHub·03:18 PM
Data Sourced
via GitHub·03:18 PM
DescriptionWeaknessAffected Software
Aug 5, 2025
CVE Published
via MITRE·12:07 AM
Data Sourced
via MITRE·12:07 AM
DescriptionWeakness
Data Sourced
via NVD·01:15 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 AM
Affected Software
Nov 23, 57783
Event
via NVD·06:09 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-54795?

CVE-2025-54795 is rated as a high severity vulnerability due to its ability to bypass security checks and execute untrusted commands.

2

How do I fix CVE-2025-54795?

To fix CVE-2025-54795, users should upgrade to version 1.0.20 or later of the @anthropic-ai/claude-code package.

3

What is the exploit path for CVE-2025-54795?

Exploitation of CVE-2025-54795 requires the attacker to introduce untrusted content into a Claude Code context window.

4

Who is affected by CVE-2025-54795?

CVE-2025-54795 affects users of the @anthropic-ai/claude-code package prior to version 1.0.20.

5

Is there a workaround for CVE-2025-54795?

There are no specific workarounds documented for CVE-2025-54795; upgrading to the latest version is advised.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203