Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.267 ·

Hooks path-traversal validation extended to a hook's 'surface' file

Hook path-traversal checks now also cover a hook's 'surface' file, not just its module file

TierYou'll noticehow much it should matter to you
Useful1my rating, 1 to 5
Signal2worth watching, 1 to 5
AreaElsewherewhat it touches
KindBug Fixesin v2.1.267,
You'll notice

Hook path-traversal checks now also cover a hook's 'surface' file, not just its module file

What

When Claude Code validates a plugin's hook configuration, it already checked the hook's module path for path traversal (an attempt to reference files outside the intended directory, e.g. using ../) and existence. It now performs the same checks on the hook's surfacePath as well, returning a path-traversal or path-not-found error if it fails.

Why

This closes a gap where a hook's surface file could point outside its intended directory without being caught, tightening the security checks around plugin hooks.

See this entry in the whole of v2.1.267 →