Claude Code 2.1.299 fixes sandbox privilege escalation issue
Start here
Anthropic released Claude Code 2.1.299, fixing a sandbox privilege escalation issue: shell commands inside the sandbox could previously write to the --plugin-dir directory, and code in that directory would be reloaded and executed by Claude Code outside the sandbox. The same version also fixed issues on macOS where sandboxed commands could read or write denied paths via symlinks using their real paths, and where the sandbox's allowRead and allowWrite wildcard rules were not revalidated after their starting directory was replaced by a symlink.
Generated by AI from reports · Updated 2026-10-14
Progress timeline
- Anthropic Claude CodeSelectedClaude Code 2.1.299 fixes issue where sandbox commands writing to --plugin-dir were loaded and executed outside the sandbox
Claude Code 2.1.299 fixes a sandbox privilege escalation issue: shell commands inside the sandbox could previously write to the --plugin-dir directory, and code in that directory could be reloaded and run by Claude Code outside the sandbox. The same version also fixes an issue on macOS where sandboxed commands could read or write denied paths via symlinks using their real paths, and a problem where the sandbox's allowRead and allowWrite wildcard rules were no longer revalidated after their starting directory was replaced by a symlink. Enforcement of permission rules for user-installed mods, managed hooks, and organization MCP tool names was also strengthened, and an issue where MCP servers were connected before some policy checks completed has been fixed.
Related discussion
- Older than 72 hours · Not included in the 72-hour figures
- X@wei_wang · WeiUpdate notes: https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md(opens the original post in a new tab)