Summary
Claude Code read the permission mode from repository-controlled settings before deciding whether to display the workspace trust prompt. A malicious repository could set permissions.defaultMode to bypassPermissions, causing the prompt to be skipped on first open and placing the user in a permissive mode. Affects versions before 2.1.53; fixed in 2.1.53.
Disclosure timeline
- Public disclosure
Credits
Reported by hackerone.com/cantina_xyz, as credited in Anthropic's advisory.