Claude Code Addresses Security and Permission Gaps in Recent Updates
Recent updates to Claude Code have focused on addressing several security and permission gaps, including fixes to sandboxing and zstd decoding, as well as the introduction of new features such as Code Mode.

This week, Claude Code v2.1.321 introduced four critical permission and sandbox fixes. These updates address cases where certain commands executed outside the sandbox without proper prompts, and where permission checks failed due to incorrect folder judgments. Specifically, the third fix resolved an issue where files written into a directory using commands like cp or mv were not checked against deny rules or protected-file prompts. This change ensures that deny rules now apply correctly to such scenarios, closing a previously unnoticed vulnerability (Dev.to, 2026-11-15). [1]
In addition to these fixes, v2.1.325 introduced a security update that addressed a vulnerability in how zstd-compressed responses are decoded. This change is particularly important for maintaining data integrity and preventing potential exploits during decompression processes. Another notable fix in v2.1.325 restored the ability to resume sessions after interruptions, ensuring that recent interactions are not lost (Dev.to, 2026-11-15). [1]
The introduction of Code Mode in v2.1.323 adds an experimental feature allowing Claude to write JavaScript to call its tools. This new mode is opt-in and requires activation through specific settings. Alongside this, plugin.json now includes version-range gating, which ensures that plugins are only installed or updated if they match the specified engine versions. This change enhances compatibility and stability for developers using Claude Code (Dev.to, 2026-11-15). [1]
Claude Code v2.1.321 was released with four critical permission and sandbox fixes aimed at improving security and preventing unintended behavior. These updates address specific gaps, such as when read-only Bash commands executed outside the sandbox without prompting, and when file writes from the wrong folder were misjudged by permission checks. Additionally, the third fix ensures that deny rules and protected-file prompts now apply correctly to files written into directories, such as when using commands like `cp src/x.env dist/` which previously did not trigger proper checks. The fourth fix prevents MCP OAuth requests from sending sensitive information, such as refresh tokens, to other hosts during server redirects. These changes were implemented without requiring users to adjust any settings, and the update is strongly recommended for all users. [1]
Advertisement
Claude Code v2.1.323 introduced an experimental feature called Code Mode, which allows Claude to write JavaScript to call its tools. This feature is opt-in and requires users to enable it manually. Alongside this, the release added engines version-range gating in plugin.json, which ensures that plugins are only installed, updated, or loaded if they are compatible with the specified version of Claude Code. Additionally, the release included a new warning for Bash allow rules that use a wildcard (`*`) in variable values, such as `Bash(PORT=* npm run dev)`, to alert users of potential security risks. These changes aim to enhance the reliability and safety of plugin interactions within the Claude Code environment. [1]
Codex released four versions this week: 0.167.1, 0.167.2, 0.168.0, and 0.169.0. Codex 0.167.1 had no release notes, only a compare link. Codex 0.167.2 introduced incremental tool updates on Google Cloud Vertex AI by default, with an option to opt out by setting `incremental_tools_legacy_gcp = false`. Codex 0.168.0 added three new configuration keys: `features.tui_workspace` for side conversations, `features.image_generation_animation` for generating animated GIFs, and `tui.notification_method = "osc777"` for terminal notifications. Codex 0.169.0 changed how `codex exec` decides trust, requiring the use of the `--trust` flag to enable project configuration and MCP servers in untrusted directories. This change is particularly important for users working in CI environments who may need to explicitly grant trust to their sessions. [1]
Gemini CLI v0.68.0 focused on sandboxing and path resolution improvements. Key fixes included supporting rootless podman with `--userns=keep-id`, making root checks case-insensitive on Windows, and resolving symlinked paths canonically in GlobTool. Additionally, the release honored `.git/info/exclude` and `core.excludesFile` in shadow repositories, ensuring consistent exclusion of files. A new feature added an extension validation command and evaluation tests, improving the ability to assess and manage extensions. The release also improved rate-limit feedback by introducing a 429 cool-down and countdown in the loading indicator, making it easier for users to understand and manage rate limits during execution. [1]
Claude Code v2.1.321 introduced four critical permission and sandbox fixes, as reported by Dev.to. These fixes address cases where prompts did not appear as expected, leading to unintended behavior changes without user input. The updates include fixing a case where a read-only Bash command ran outside the sandbox without a permission prompt, and another where Bash permission checks judged a file write from the wrong folder and did not prompt. These fixes are crucial for users who rely on deny rules to guard specific paths, as the third fix addresses an issue where files written into a directory were not checked against these rules. This update ensures that users' configurations are applied as intended. [1]
Advertisement
In addition to the permission and sandbox fixes, v2.1.325 introduced a security update that addressed a vulnerability in how zstd-compressed responses are decoded. This fix is essential for ensuring secure data transmission and preventing potential exploitation of compressed data formats. The vulnerability could have allowed malicious actors to manipulate or extract data in unintended ways, making this update a critical component of maintaining system integrity and security. This fix was highlighted in the Dev.to article as a key point in the week's updates. [1]
The introduction of Code Mode in v2.1.323 adds an experimental feature allowing Claude to write JavaScript to call its tools. This feature is optional and does not activate by default, requiring users to opt-in. Code Mode provides developers with greater flexibility in how they interact with Claude's tools, enabling more complex and dynamic interactions. The Dev.to article notes that this feature is covered in the documentation at https://code.claude.com/docs/en/code-mode, and users can enable or disable it for their organization based on their specific needs. [1]
Sources
Prepared with AI assistance from the cited sources.
The Cali Reporter newsletter
The stories worth your time.
California, the country, and what comes next. Join our free newsletter for reporting that keeps you informed.
More in Technology
- Modern Web Guidance 1.0 and Browser Compatibility
Modern Web Guidance 1.0, announced by Chrome for Developers on November 10, introduces browser compatibility data to assist coding agents in building web features. The initiative emphasizes the importance of fallback…
- Apache mod_http2 Vulnerability Detection with Nmap
A new Nmap scripting module has been developed to detect the Apache mod_http2 vulnerability (CVE-2026-119618), addressing the challenges of identifying affected systems accurately.
- Securing Remote Vendor Access in Industrial Networks
Best practices for managing remote vendor access in operational technology (OT) networks emphasize controlled access points, multifactor authentication, and time-bound sessions to reduce cybersecurity risks.
