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

Claude Code v2.1.72 ·

Tree-Sitter Bash Security Analyzer Rewrite

Entry
JSON All of v2.1.72
EntryKind: in v2.1.72,
ChangesSection of the release

The shell command security analyzer has been significantly rewritten to use tree-sitter AST analysis instead of relying solely on string-based heuristics. When tree-sitter is available, it provides authoritative quote context analysis, compound structure detection, and dangerous pattern identification.

New security checks include:

  • Arithmetic expansion with variable references
  • Heredocs with unquoted delimiters (shell expansion risk)
  • Brace expansion syntax detection
  • IFS assignment (word-splitting changes)
  • Tilde expansion in assignment values
  • Unicode whitespace and control character detection
  • Zsh ~[ dynamic directory syntax
  • Shell keyword misuse detection

When tree-sitter is unavailable, falls back to the legacy shell-quote parser with a log message: "tree-sitter unavailable, using legacy shell-quote path".

Evidence

New analyzer functions (search for "Tree-sitter quote context is authoritative", "Brace expansion", "IFS assignment")

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

See this entry in the whole of v2.1.72 →

Feedback