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.98 ·

Subprocess Environment Scrubbing Enhancements

Entry
JSON All of v2.1.98
EntryKind: in v2.1.98,
ImprovementsSection of the release

The CLAUDE_CODE_SUBPROCESS_ENV_SCRUB feature (introduced previously) receives significant hardening in this release:

  • Requires bubblewrap (bwrap) on Linux for filesystem sandboxing; provides clear installation instructions if missing
  • Creates stub files for common dotfiles (.gitconfig, .bashrc, .npmrc, etc.) to prevent errors in sandboxed environments
  • Defines comprehensive filesystem access rules: deny-read for container sockets, deny-write for shell configs, git hooks, CI environment files, and package manager configs
  • Adds .git/info/exclude entries for scrub-mode stubs to keep git status clean
  • Forces permission mode to default when env scrubbing is active
  • New allowUnsandboxedCommands sandbox setting for fine-grained control
Evidence

Env scrub hardening (search for "bubblewrap is required for subprocess env scrubbing" and "claude-code scrub-mode stubs")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeAdded subprocess sandboxing with PID namespace isolation on Linux when CLAUDE_CODE_SUBPROCESS_ENV_SCRUB is set, and CLAUDE_CODE_SCRIPT_CAPS…

See this entry in the whole of v2.1.98 →

Feedback