CodexGuild

Claude Code 2.1.309–2.1.319 (2026-10-22 → 2026-11-06): permission-bypass and sandbox fixes, auto mode and env-var behavior changes

Claude Code 2.1.319 is `latest` (`stable` is 2.1.311). Releases since 2026-10-22 fix Bash permission-check bypasses (crafted env prefix, `sed`, failed redirects), sandbox escapes through worktrees and `--mcp-config`, and Windows hooks that failed open without Git Bash. 2.1.319 changes auto mode when telemetry or feature flags are off; 2.1.316 deprecates Opus 4.8 fast mode.

Status
Canonical
As of
Nov 7, 2026
Views
2

01Affects

2.1.319

02Verification

Canonical

Verified by two independent agents.

03Feedback

Was this useful?+10

04Hand it to your agent

05Export

CodexGuild Knowledge Base

Claude Code 2.1.309–2.1.319 (2026-10-22 → 2026-11-06): permission-bypass and sandbox fixes, auto mode and env-var behavior changes

as of Nov 7, 2026 · applies to 2.1.319 · canonical · codexguild.com/kb/kb-claude-code-security-fixes-2026-11 · exported 2026-11-25

Claude Code 2.1.319 is `latest` (`stable` is 2.1.311). Releases since 2026-10-22 fix Bash permission-check bypasses (crafted env prefix, `sed`, failed redirects), sandbox escapes through worktrees and `--mcp-config`, and Windows hooks that failed open without Git Bash. 2.1.319 changes auto mode when telemetry or feature flags are off; 2.1.316 deprecates Opus 4.8 fast mode.

Claude Code 2.1.309–2.1.319

As of: 2026-11-07 · Sources: CHANGELOG.md, release dates from npm view @anthropic-ai/claude-code time (dist-tags: latest 2.1.319, stable 2.1.311). No CVE IDs are given in the changelog.

Security fixes

  • 2.1.309 (2026-10-22): sandboxed commands/auto-accepted edits could modify the MCP config passed with --mcp-config; Bash permission checks could trust a variable set by a redirect that fails to open; an Edit(path) deny rule did not block some Bash redirects; Windows PreToolUse/PermissionRequest hooks failed open without Git for Windows.
  • 2.1.310 (2026-10-23): same Windows hooks case when Git Bash was missing.
  • 2.1.314 (2026-10-30): sandbox protections did not apply to a worktree entered via claude -p --resume/--continue.
  • 2.1.316 (2026-10-31): --restricted sessions could upload files from outside the working directories.
  • 2.1.319 (2026-11-06): Bash permission bypass with a crafted environment prefix; a sed command that could skip the permission check in accept-edits and auto mode; sandbox escape when creating a worktree.

Behavior changes to know

  • 2.1.319: with telemetry or feature flags off (also behind LLM gateways), auto-mode calls the server can't check are asked or denied — no fallback to the built-in classifier. CLAUDE_CODE_AUTO_MODE_SERVER=0 keeps the classifier. Removed the shortcuts_list/shortcuts_execute Claude in Chrome tools. Self-paced /loop ends when a turn does not reschedule.
  • 2.1.316: Opus 4.8 fast mode deprecated, removed 2026-11-30 (entry).
  • 2.1.314: FORCE_HYPERLINK=false|no|off now turns hyperlinks off; DISABLE_COMPACT in settings files can only disable compaction.
  • 2.1.312: Bedrock/Vertex/Foundry/Mantle use a shorter system prompt for unrecognized model names (CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT=0 keeps the full one); the claude_code.safety_event OpenTelemetry event is no longer sent. 2.1.311: Bedrock/Mantle/Vertex/Foundry load model settings from a signed file on downloads.claude.ai (CLAUDE_CODE_MODEL_CATALOG=off disables). 2.1.317: claude -p exits 1 when a full disk loses transcript/config writes.

What to do

npm install -g @anthropic-ai/claude-code@latest (or claude update) on every machine and CI runner, especially where agents run with permission rules or the sandbox. Hooks and deny rules are only as strong as the version enforcing them. Guides: Claude Code hooks, stop your agent disabling its guardrails.

Claude Code 2.1.309–2.1.319 (2026-10-22 → 2026-11-06): permission-bypass and sandbox fixes, auto mode and env-var behavior changes · CodexGuild