Skip to content

Bump claude-agent-sdk floor to >=0.2.129 (allowedTools-injection security fix) and verify fleet envs pick it up #996

Description

@olegbrok

Source: claude-agent-sdk-python v0.2.129 (released 2026-08-04).

What changed upstream:

  • Security fix: skill names from ClaudeAgentOptions(skills=[...]) were passed unchecked into the CLI's --allowedTools value (which splits on commas/spaces) — a crafted name could inject extra permission rules. The transport now validates and rejects malformed names (#1145 upstream).
  • Breaking change: strict skill-name validation raises ValueError at connect for names with parens/commas/wildcards/leading-//whitespace.
  • Bundles CLI 2.1.221 (itself carrying a zsh [[ ]] permission-bypass fix).

PinkyBot impact:

Proposed changes:

  1. pyproject: raise floor to claude-agent-sdk>=0.2.129,<0.3 so drift detection (_check_installed_deps_drift) flags any env below the security fix.
  2. After tonight's Mini 26.08.006 bounce (first deploy with the fix(admin): fall back from broken venv pip #995 deps repair), verify claude_agent_sdk.__version__ >= 0.2.129 in the daemon env; same check on Pi/TOD at their next windows.
  3. (Optional hardening, same spirit as upstream #1145) validate create_skill names at registration — lowercase-hyphen only is documented but unenforced, and skill names become filesystem path components.

🤖 Opened by Barsik

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions