claude-code - 💡(How to fix) Fix [Bug] Security: Bash commands execute without user approval [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52853Fetched 2026-04-25 06:19:08
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Code Example

// ~/.claude/settings.json
{
  "disableAutoMode": "disable"
}

---

[]
RAW_BUFFERClick to expand / collapse

Bug Description

Today, I updated Claude code to the latest version. Since this update, I saw it run bash-commands without approval.

I've tried prompting it to find out why this does happen. It mentioned the auto-mode, which I disabled, but this didn't seem to help.

// ~/.claude/settings.json
{
  "disableAutoMode": "disable"
}

Originally, I thought it was the Claude App for mac that had this issue, but now even in the command line I can ask Claude to run arbitrary bash commands and they are executed without my consent.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.119
  • Feedback ID: 2cd6d985-fbd8-4c6c-9e59-bd8356c9ab0e

Errors

[]

extent analysis

TL;DR

The issue might be resolved by correctly configuring the disableAutoMode setting in the Claude settings file.

Guidance

  • Verify that the disableAutoMode setting is correctly set to true instead of the string "disable" in the ~/.claude/settings.json file.
  • Check the documentation for the correct syntax and possible values for the disableAutoMode setting.
  • Test the configuration by running a command that previously executed without approval and see if it now prompts for consent.
  • If the issue persists, try resetting the Claude settings to their default values or seeking further assistance from the Claude support team.

Example

// ~/.claude/settings.json
{
  "disableAutoMode": true
}

Notes

The provided information does not include the full documentation for the Claude settings, so it is unclear what other settings might be contributing to this issue.

Recommendation

Apply workaround: Correctly configure the disableAutoMode setting, as this is the most likely cause of the issue and is directly mentioned in the error description.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] Security: Bash commands execute without user approval [1 comments, 2 participants]