Intel

AIKIDO-2026-522458

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

Authorization Bypass Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Yesterday

65

Medium Risk

This Affects:

JS@anthropic-ai/claude-code
0.2.9 - 2.1.220
Fixed in 2.1.221
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.

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).

Background info

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

How to fix this

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