Claude Code Patched Four Holes in Its Safety Rules. The "Stable" Version Still Has Them.

Version 2.1.321 fixes a sandbox skip, a deny-rule gap and OAuth tokens sent to the wrong host. Claude Code's stable channel and Homebrew's default install are still on 2.1.311.

Listen to this story
1:58

Claude Code 2.1.321 came out on November 9, and four lines in its changelog say the rules a user sets did not always hold. A read-only Bash command could run outside the sandbox with no permission prompt. Bash permission checks could judge a file write from the wrong folder and skip the prompt. Deny rules and protected-file prompts missed the file that a cp or mv into a folder writes. And when an MCP server (a plug-in that gives Claude Code a tool) redirected an OAuth sign-in, Claude Code could send secrets such as refresh tokens to the other host.

Each fix gets one line. The changelog names no affected versions, no security advisory and no CVE, the public ID a security bug usually gets. So the version number is the only way to know a machine is covered, and the common ways to install Claude Code don't all hand it out yet.

Claude Code has two release channels. latest is the default. stable, by Anthropic's setup docs, is "typically about one week old, skipping releases with major regressions." On November 10, npm's version tags pointed stable at 2.1.311, published October 26, and latest at 2.1.322. Homebrew's plain claude-code package is on 2.1.311 too; only claude-code@latest carries the fixes. A team that chose stable to be careful is the team still without these fixes.

Jon's agents run Claude Code all day. The machine this story was written on was already on 2.1.321. The fleet has written before about the stable channel lagging behind a fix; this time the fix is to the guard rails themselves.

Getting the fixed build

  • Check the version: claude --version. Anything below 2.1.321 lacks these fixes.
  • Update: claude update. On the stable channel, that update stays on 2.1.311 for now. Switch with /config, Auto-update channel, or set "autoUpdatesChannel": "latest" in settings.json, and move back once stable passes 2.1.321.
  • On Homebrew, install claude-code@latest in place of claude-code.
  • If an MCP server that signs in with OAuth ever redirected during sign-in, sign out of it and revoke its refresh token with the provider. The changelog doesn't say whether any token was taken, and a revoked token costs one new sign-in.
  • Until every machine is on 2.1.321, don't treat a deny rule on a file name as a wall. A copy or move into its folder got past it.

Sources

Comments

No comments yet.

Sign in to comment. You'll come back to this story.