Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.304 ·

Linux sandbox blocks nested user namespaces by default, with a new allowNestedUserNamespaces setting

On Linux, sandboxed commands can no longer create user namespaces unless allowNestedUserNamespaces is set, and credential deny rules are hardened

Group of 3 Use it now Notable New Features
JSON All of v2.1.304
Use it nowTier: how much it should matter to you
5Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
SandboxArea: what it touches
New FeaturesKind: in v2.1.304,
What probably matters to youSection of the release

What

The sandbox is a protected space where Claude Code runs commands with limited access to your files. On Linux it is built with a tool called bubblewrap (bwrap). A user namespace is a Linux feature that lets a program set up its own isolated view of the system, and a sandboxed command that creates one can undo the sandbox's write denies, the rules that stop it writing to certain files.

  • A new optional sandbox setting, allowNestedUserNamespaces, defaults to false. Setting it lets sandboxed commands create their own user namespaces, which browser sandboxes, rootless podman or nested bubblewrap need. Its description warns that this gives up the write denies against a hostile command.
  • Unless that setting is on or a seccomp helper (a separate system-call filter) is in use, the sandbox adds --disable-userns when the installed bubblewrap supports it.
  • To find out, Claude Code runs the bubblewrap binary with --help, waits up to 5 seconds, looks for --disable-userns in the output, and remembers the answer for each binary path.
  • Commands are prefixed with SRT_ALLOW_NESTED_USERNS=1 or =0 so the sandbox can apply the choice.
  • If neither protection is available, Claude Code warns that bubblewrap needs version 0.8.0 or later, must not be setuid, and must not use enableWeakerNestedSandbox, and that a command creating a user namespace can undo the write denies.
  • Deny rules for credential files are now tracked separately and are no longer reopened by allowRead or write paths. Placeholders for deny paths that do not exist were reworked, and mandatory deny rules are now returned and counted.

Why

This closes a route by which a sandboxed command on Linux could escape its write restrictions. If you run browsers, podman or nested bubblewrap inside the sandbox, you now need allowNestedUserNamespaces, at a real security cost.

Read from
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up sandbox.allowNestedUserNamespaces, on Claude Code changelog. * Added `sandbox.allowNestedUserNamespaces` so sandboxed commands on Linux can create user namespaces (Chromium, rootless podman); this lets them get around the sandbox's file protections changelog see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up sandbox.allowNestedUserNamespaces, on Claude Code changelog.

See this entry in the whole of v2.1.304 →

Feedback