Claude Code has a Workspace Trust Dialog Bypass via Repo-Controlled Settings File
CVE-2026-33068 · GHSA-mmgp-wc2j-qcv7 · published 2026-03-19 · updated 2026-03-20
- Severity
- High
- CVSS score
- 7.7
- Chance of exploitation (EPSS)
- 0.40%
- Fixed in
- 2.1.53
- Exploitation No known exploitation
- Automatable No
- Technical impact Total
- CISA SSVC
Claude Code resolved the permission mode from settings files, including the repo-controlled .claude/settings.json, before determining whether to display the workspace trust confirmation dialog. A malicious repository could set permissions.defaultMode to bypassPermissions in its committed .claude/settings.json, causing the trust dialog to be silently skipped on first open. This allowed a user to be placed into a permissive mode without seeing the trust confirmation prompt, making it easier for an attacker-controlled repository to gain tool execution without explicit user consent.
Upgrade @anthropic-ai/claude-code to 2.1.53 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| @anthropic-ai/claude-code | npm | < 2.1.53 | 2.1.53 |
- CriticalLiteLLM has SQL Injection in Proxy API key verificationlitellmExploited
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8n, n8nExploited
- HighLiteLLM has a sandbox escape in custom-code guardraillitellmExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- CriticalJupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesjupyter-mcp-server
- Criticalmem0ai Databricks vector store vulnerable to SQL injectionmem0ai
- HighClaude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace@anthropic-ai/claude-code
- HighClaude Code: Plugin Hash Pin Bypass Allows Bypass of Hash Pinning@anthropic-ai/claude-code
- HighClaude Code: Sandbox Escape via Git Worktree Path Confusion Allows Unsandboxed Code Execution@anthropic-ai/claude-code
- HighClaude Code: Trust Dialog Bypass via Git Worktree Spoofing Allows Arbitrary Code Execution@anthropic-ai/claude-code
- HighClaude Code: Sandbox Escape via Symlink Following Allows Arbitrary File Write Outside Workspace@anthropic-ai/claude-code
- HighClaude Code Vulnerable to Command Injection via Directory Change Bypasses Write Protection@anthropic-ai/claude-code
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.