Claude Code 2.1.319: bash permission bypass, worktree sandbox escape, and related permission-check fixes
Summary
These fix descriptions come from Anthropic's Claude Code 2.1.319 release notes. VibeIncidents has not independently confirmed the underlying vulnerabilities or whether the fixes work, and the cited sources do not establish independent confirmation. The npm package Claude Code 2.1.319 was published on Nov 5, 2026 at 7:58 PM ET (2026-11-06T00:58:56.366Z). Anthropic published its GitHub release on Nov 6 at 12:04 PM ET. The changelog lists several security-relevant fixes with one line each and no CVE IDs: a Bash permission bypass where a crafted environment prefix could hide part of a command from permission checks; a sandbox escape when creating a worktree; a sed command that could skip the permission check in accept-edits and auto mode; Bash deny and ask rules that missed commands written with quoted words; and a case where /rewind could restore or delete a file through a directory symlink. Related hardening in the same release includes --trust-workspace false also stopping hooks and skills from the repository's settings on self-hosted runners, and a project's settings or a plugin no longer being able to switch the server-side auto-mode check back on after the user turned it off outside the project. The inspected 2.1.319 release notes provide no CVE identifiers, severity ratings, advisory links or exploitation statements for these fixes. Those notes alone do not establish whether a separate advisory exists or whether exploitation has occurred. This is separate from the User-Agent email reports already on this site, which the 2.1.319 notes do not mention.
Severity
Timeline
npm publishes @anthropic-ai/claude-code 2.1.319 (registry time 2026-11-06T00:58:56.366Z).
Anthropic publishes GitHub release v2.1.319 with the listed fixes.
ossbeat and Azeem Hassni publish separate summaries of Anthropic's changelog. These posts do not establish independent confirmation of the underlying bugs or fixes.
How it happened
Anthropic's 2.1.319 release notes say a crafted environment prefix could hide part of a Bash command from permission checks, and separately list a sandbox escape when creating a worktree. They also say a sed command could skip the permission check in accept-edits and auto mode, Bash deny and ask rules could miss commands written with quoted words, and /rewind could restore or delete a file through a directory symlink. The notes do not provide fuller mechanisms, affected version ranges or evidence of practical exploitation.
How to check your app
- Run claude --version (or check your package manager). Update to Claude Code 2.1.319 or later and restart it.
- For npm installs, specify the desired version or @latest, then run claude --version and restart. Do not assume a channel name selects 2.1.319 or later.
- The release notes do not state affected version ranges. Update to 2.1.319 or later for the listed fixes; do not infer that every older version has every listed flaw.
- This release does not claim to close the separate User-Agent email reports logged on this site.
Sources
- Claude Code changelog / GitHub release v2.1.319
- Claude Code changelog (docs)
- npm registry: @anthropic-ai/claude-code
- ossbeat: Claude Code 2.1.319 sandbox and permission fixes (Nov 8, 2026)
- Azeem Hassni: Claude Code patches a bash permission bypass and a worktree sandbox escape (Nov 8, 2026)
Corrections and updates
Correction: we limited absence claims to the inspected release notes, removed inferred mechanism details and historical npm-tag claims, and clarified that affected ranges and independent confirmation are unknown. The two secondary summaries derive from Anthropic's changelog. Earlier first-publication and complete Nov 9 verification claims could not be substantiated and are no longer presented as established.
Cite this entry
- Title
- Claude Code 2.1.319: bash permission bypass, worktree sandbox escape, and related permission-check fixes
- Publication status
- First evidenced live: Nov 9, 2026, 6:50 PM ET. Earlier first-publication time is unverified.
- URL
- https://vibeincidents.com/incidents/claude-code-2-1-319-permission-sandbox-fixes/
- Suggested citation
VibeIncidents. "Claude Code 2.1.319: bash permission bypass, worktree sandbox escape, and related permission-check fixes." First evidenced live: Nov 9, 2026, 6:50 PM ET. Earlier first-publication time is unverified.. https://vibeincidents.com/incidents/claude-code-2-1-319-permission-sandbox-fixes/