Intel

AIKIDO-2026-522458

@anthropic-ai/claude-code is vulnerable to Authorization Bypass

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 6, 2026
August 6, 2026

65

CVE Score

Medium

Authorization Bypass

Are you affected? Scan for Free

TL;DR

The Bash and PowerShell permission checkers fail to treat certain crafted inputs as requiring approval. A zsh command hidden inside a [[ ]] regex conditional can run without ever showing the approval prompt, and a Windows PowerShell path that contains quote characters can similarly slip past the check. When those forms are issued through the CLI tools, the expected confirmation in manual or auto permission modes is skipped. The fix makes those Bash/zsh regex-conditional forms and quoted Windows PowerShell paths prompt for permission instead of auto-running.

How do I fix this?

Upgrade the @anthropic-ai/claude-code library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and rely on Claude Code permission prompts for Bash/zsh commands that use [[ ]] regex conditionals, or for PowerShell tool commands with quoted Windows paths (the PowerShell tool is only present in later releases).

Versions

0.2.9 - 2.1.220

Fixed in 2.1.221

Background info

@anthropic-ai/claude-code is vulnerable to Authorization Bypass in versions 0.2.9 - 2.1.220.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea