Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.269 ·

Closed a loophole letting a glob before '..' escape the read-directory block

Claude Code now blocks a glob-before-'..' trick that could have escaped read-directory restrictions

TierYou'll noticehow much it should matter to you
Useful2my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaPermissionswhat it touches
KindBug Fixesin v2.1.269,
You'll notice

Claude Code now blocks a glob-before-'..' trick that could have escaped read-directory restrictions

What

Claude Code now detects when a file path being read contains a glob (a wildcard pattern like *) placed before a .. (parent directory) segment. Because the shell would expand that glob before Claude Code gets a chance to check the resulting path against read restrictions like blockReadsOutsideWorkingDirectories or deny rules, such a path is now denied outright with an explicit safety message, instead of being silently evaluated as whatever the shell expanded it to.

Why

This closes a way a crafted path could have let a file read escape the directories it was supposed to be confined to, since the pre-expansion path couldn't otherwise be verified against those restrictions.

Read from
Names in the bundleblockReadsOutsideWorkingDirectories
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.

Added since A small documentation edit on How Claude remembers your project touched a line naming blockReadsOutsideWorkingDirectories after this was published. When you set it in a project's `.claude/settings.json` or `.claude/settings.local.json`, Claude Code honors it under the same [workspace trust rule as hooks in settings files](/docs/en/permissions#what-runs-before-you-trust-a-folder). Whil… memory see the edit
Confirmed since Anthropic's documentation has since written up blockReadsOutsideWorkingDirectories, on Claude Code changelog. * Fixed Bash commands with two directory changes, a subshell, or a `cd`+`git` chain skipping the prompt under `permissions.blockReadsOutsideWorkingDirectories` in bypass and auto mode 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 blockReadsOutsideWorkingDirectories, on Claude Code changelog.

See this entry in the whole of v2.1.269 →

Feedback