# 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.

- Status: official (From the company, authors or authority themselves, with a link to their own page.)
- Topic: Safety & Security
- Published: 2026-11-06T00:00:00+00:00
- Updated: 2026-11-07T11:38:57.639325+00:00
- Web page: https://ai-news.ikangai.com/story/claude-code-2-1-319-fixes-a-bash-permission-bypass-and-a-worktree-sandbox-escape/
- Seen in: Claude Code changelog
- Change: security (Security)
- Applies to: Claude Code 2.1.319

## 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.

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.

## 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

- [Claude Code changelog - Claude Code Docs](https://code.claude.com/docs/en/changelog)
- [claude-code/CHANGELOG.md at main · anthropics/claude-code · GitHub](https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md)

---

AI wrote this summary from the sources listed, and nobody reviewed it individually before publication. Check the original source before you rely on it.

Cite as: IKANGAI AI News, "Claude Code 2.1.319 fixes a Bash permission bypass and a worktree sandbox escape", 2026-11-06, https://ai-news.ikangai.com/story/claude-code-2-1-319-fixes-a-bash-permission-bypass-and-a-worktree-sandbox-escape/
