[BUG] Claude Code security blocks full paths when they contain spaces
Resolved 💬 2 comments Opened Aug 13, 2025 by SpaceyKasey Closed Aug 15, 2025
Environment
- Platform (select one):
- [X] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version:
v1.0.77 - Operating System:
MacOS 15.6 - Terminal:
wezterm
Bug Description
Claude code security check not properly handling bash commands when the path contains a space
Steps to Reproduce
- Create a session in a path that contains a space
- Trigger claude to read a file in the path
- Claude generates an absolute path containing an escaped space
- Observe security blocks access to the incomplete path name, ignoring the escape character
Expected Behavior
Command should complete without being blocked
Actual Behavior
Command access is blocked
Additional Context
Bash(find /Volumes/External\ Drive/Dev/Project -name "*.js" -type f 2>/dev/null | head -10)
⎿ Error: find in '/Volumes/External' was blocked. For security, Claude Code may only search files in the allowed working directories for this session:
'/Volumes/External Drive/Dev/Project'.This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗