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.
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; anEdit(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):
--restrictedsessions could upload files from outside the working directories. - 2.1.319 (2026-11-06): Bash permission bypass with a crafted environment prefix; a
sedcommand 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=0keeps the classifier. Removed theshortcuts_list/shortcuts_executeClaude in Chrome tools. Self-paced/loopends 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|offnow turns hyperlinks off;DISABLE_COMPACTin 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=0keeps the full one); theclaude_code.safety_eventOpenTelemetry 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=offdisables). 2.1.317:claude -pexits 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.