Claude Code 2.1.327 to 2.1.331: Managed Marketplaces Auto-Update From 30 November, and Code Mode Hooks Now Fail Open
- What happened
- Claude Code 2.1.327 to 2.1.331 (17 to 23 November) changed hook, sandbox and plugin defaults, and 2.1.331 announced that managed marketplaces will auto-update by default on or after 30 November.
- Why it matters
- Teams that use hooks as a security gate, or log through managed hooks, may now see calls go through or go unlogged where they used to be refused or recorded.
- What to do
- Decide autoUpdate for each managed marketplace before 30 November, and set onFailure: block on every Code Mode hook that must refuse.
Our verdict: if your team treats Claude Code hooks as guardrails, re-test them on 2.1.331 this week. None of these changes is labelled a security fix, and none is a vulnerability. They are default changes, and several loosen what a hook enforces. Claude Code stays conditional in our directory.
We re-read each quoted bullet under its version header on the official Claude Code changelog on 24 November. We have not tested these releases against our own hook setup.
What happened
Anthropic shipped five Claude Code releases in a week. The changes that matter for admins:
2.1.331 (23 November): marketplaces and Windows policy
- "Changed in a future release, on or after November 30, 2026: plugin marketplaces in managed
extraKnownMarketplaceswill auto-update by default. To opt one out, set"autoUpdate": falseon its entry" - "Windows: Changed start-up with managed settings in the registry: check them before upgrading, as an
HKLMpolicy outranksmanaged-settings.jsonand a broken value can stop the start"
2.1.329 already added a "Marketplace auto-update" row to /status that names managed marketplaces that get no automatic updates, and why.
2.1.330 (20 November): more rm prompts
- "Changed more
rmcommands aimed at the root, home, a top-level folder or the working folder to ask for approval; where nobody can answer, they're refused"
2.1.329 (19 November): Code Mode hooks fail open
- "Changed Code Mode so a PreToolUse hook that errors no longer refuses a script's tool call, as outside Code Mode; set
"onFailure": "block"on a command, HTTP or MCP tool hook that must refuse" - "Gateway: Changed the start-up warning shown while
access_control.allow_cidrsis empty to a notice at every start, boxed in text logs: never expose the gateway to the public internet" - "Updated computer use on macOS to newer safety rules, so some actions are refused and some apps have less access"
2.1.328 (19 November): what managed hooks still see
- "Changed managed
PostToolUsehooks to no longer fire for calls refused before they ran: no log entry, rewrite, block or stop there;PostToolBatchgets most, not marked as refused" - "Changed a shell command rewritten by a PermissionRequest hook to a sandbox-excluded command to run outside the sandbox"
- "Changed Code Mode to no longer run UserPromptSubmit hooks, managed ones included, on scripts' output; to redact that output, use a PostToolUse hook with
updatedToolOutput" - "Added
"onFailure": "block"formcp_toolhooks, as for command and HTTP hooks: a hook whose call fails blocks the action" - "Self-hosted runner: Changed the built-in
gh apito be off by default where settings guard Claude's GitHub tools by name;--use-anthropic-gh trueturns it on"
2.1.327 (17 November): tighter path checks
- "Changed
permissions.blockReadsOutsideWorkingDirectoriesto refuse more Bash commands that name a path under a Read or Edit deny rule, where it used to ask" - "Changed path checks to refuse some symbolic links"
- "Added
claude mcp add-json <name> -to read the server's JSON from stdin, so tokens can stay off the command line; not available inside a Claude Code session"
Why it matters
The direction is split. Path checks, rm prompts and macOS computer use got stricter. Hooks got looser in three places:
- Code Mode PreToolUse hooks now fail open. A hook that errors lets the script's call through unless it carries
"onFailure": "block". A crashing guard is now a silent pass. - Managed PostToolUse hooks miss refused calls. If your audit log is built on them, calls refused before they ran no longer leave an entry there.
PostToolBatchsees most of them, but not marked as refused. - Redaction moved. UserPromptSubmit hooks no longer run on Code Mode script output, managed ones included. Redaction that relied on them has stopped.
Add the marketplace change: from a release on or after 30 November, every managed extraKnownMarketplaces entry pulls updates by default unless you opt it out. That is a deadline, which is why this post is triaged as act.
What changes for you
- Admins with managed marketplaces: before 30 November, decide per entry whether it should auto-update, and set
"autoUpdate": falsewhere it should not. Use the/statusrow to confirm. - Teams on Code Mode: add
"onFailure": "block"to every command, HTTP or MCP tool hook that must refuse a call when it errors. - Teams that log or redact through hooks: check what managed PostToolUse and UserPromptSubmit hooks still see on 2.1.328 and later. Move redaction of script output to a PostToolUse hook with
updatedToolOutput. - Teams with PermissionRequest hooks that rewrite commands: confirm none can produce a sandbox-excluded command, which now runs outside the sandbox.
- Windows admins: check
HKLMmanaged settings before upgrading to 2.1.331.
FAQ
Is any of this a security vulnerability? No. The changelog lists them as changed defaults, not fixes. The risk is that existing guardrails quietly stop doing what you expect.
Does the marketplace change apply to marketplaces I added myself? The changelog names only plugin marketplaces in managed extraKnownMarketplaces.
Is the Code Mode hook change new behaviour for Claude Code? Only inside Code Mode. The changelog says a PreToolUse hook that errors now behaves "as outside Code Mode", where it already did not refuse the call.
What to do
- 1 Admins with managed extraKnownMarketplaces: decide before 30 November whether each entry should auto-update, and set "autoUpdate": false where it should not.
- 2 In Code Mode, set "onFailure": "block" on every command, HTTP or MCP tool hook that must refuse a call when it errors.
- 3 If you log or redact through managed PostToolUse or UserPromptSubmit hooks, check what they still see on 2.1.328 and later, and move redaction of script output to a PostToolUse hook with updatedToolOutput.
- 4 If a PermissionRequest hook rewrites commands, check that none can be rewritten into a sandbox-excluded command.
- 5 Windows admins: check HKLM managed settings before upgrading to 2.1.331.
Affected tools & models
Never need to catch up again
The weekly delta: only verdict changes and act-now items. No digest filler.