Claude Code 2.1.319 fixes a Bash permission bypass and a worktree sandbox escape
The 2.1.319 changelog lists fixes for a Bash permission bypass using a crafted environment prefix and a sandbox escape when creating a worktree.
Anthropic's Claude Code 2.1.319 changelog, dated November 6, 2026, lists two security fixes. One is a Bash permission bypass in which a crafted environment prefix could hide part of a command from permission checks. The other is a sandbox escape when creating a worktree. The changelog gives one line to each and no further detail, so the entries are the only account of what went wrong.
The changelog says only that the environment prefix could hide part of a command from permission checks. It does not say which parts were hidden or what commands could be slipped through. A separate entry in the same release fixes a case where Bash deny and ask rules missed commands written with quoted words. The changelog does not say whether the two are related.
The worktree fix is described as a sandbox escape when creating a worktree.
A third entry covers a case where a sed command could skip the permission check in accept-edits and auto mode. The entry says only that the case has been fixed.
The entries sit among 90 bug fixes and carry no security label.
What changed
Claude Code 2.1.319 fixes a Bash permission bypass where a crafted environment prefix could hide part of a command from permission checks, and a sandbox escape when creating a worktree.
Type: Security · Applies to: Claude Code 2.1.319
Why it matters
Companies that let coding agents run shell commands rely on permission checks, so bypasses in those checks affect their security posture.
What you can do
Teams running Claude Code with shell access should upgrade to 2.1.319 or later.
Original source
Where we saw it
Claude Code changelog
AI wrote this summary from the sources listed, and nobody reviewed it individually before publication. Check the original source before you rely on it. How it works