[Bug] Unauthorized .env File Access When 'Accept Edits' Enabled
Resolved 💬 3 comments Opened Sep 25, 2025 by ben-matchers Closed Jan 9, 2026
Bug Description
Claude code vient de lire mon fichier .env alors que c'est interdit dans les rules. Je constate qu'il arrive à le lire lorsque je suis en mode 'accept edits on'. CRITICAL BUG !!!!
Environment Info
- Platform: linux
- Terminal: gnome-terminal
- Version: 1.0.124
- Feedback ID: 9f75e145-e56e-412d-b8bf-7343a9d7bb8e
Errors
[{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at rF (file:///home/ben/.nvm/versions/node/v20.19.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:1813:1184)\n at file:///home/ben/.nvm/versions/node/v20.19.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:1813:912\n at Array.map (<anonymous>)\n at XJ (file:///home/ben/.nvm/versions/node/v20.19.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:1813:903)\n at iGB (file:///home/ben/.nvm/versions/node/v20.19.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:2911:9412)\n at VC (file:///home/ben/.nvm/versions/node/v20.19.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:34:19415)\n at Mp (file:///home/ben/.nvm/versions/node/v20.19.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:42814)\n at K9 (file:///home/ben/.nvm/versions/node/v20.19.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38355)\n at Rh (file:///home/ben/.nvm/versions/node/v20.19.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38283)\n at EC (file:///home/ben/.nvm/versions/node/v20.19.2/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38137)","timestamp":"2025-09-25T15:29:13.391Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗