chore: review hook security fixes from CLI 2.1.51 #163

Closed
opened 2026-02-25 08:51:32 -08:00 by hikari · 0 comments
Owner

Context

Claude CLI v2.1.51 included two security fixes related to hooks:

  1. statusLine & fileSuggestion hooks: These could previously execute without workspace trust acceptance in interactive mode. Fixed in v2.1.51.
  2. HTTP hooks: Could previously interpolate arbitrary environment variables from header values. Fixed in v2.1.51.

Hikari Desktop uses hooks (including statusLine) to communicate character state and receive data from Claude Code.

Action Required

  • Review our hook implementation in the codebase to understand which hook types we use
  • Verify our hooks behave correctly after the security fixes (no regressions)
  • If we use HTTP hooks, audit header values for any env variable interpolation patterns
  • Update our Claude CLI dependency to v2.1.51+ if not already done

This issue was created with help from Hikari~ 🌸

## Context Claude CLI v2.1.51 included two security fixes related to hooks: 1. **statusLine & fileSuggestion hooks**: These could previously execute without workspace trust acceptance in interactive mode. Fixed in v2.1.51. 2. **HTTP hooks**: Could previously interpolate arbitrary environment variables from header values. Fixed in v2.1.51. Hikari Desktop uses hooks (including `statusLine`) to communicate character state and receive data from Claude Code. ## Action Required - [ ] Review our hook implementation in the codebase to understand which hook types we use - [ ] Verify our hooks behave correctly after the security fixes (no regressions) - [ ] If we use HTTP hooks, audit header values for any env variable interpolation patterns - [ ] Update our Claude CLI dependency to v2.1.51+ if not already done ✨ This issue was created with help from Hikari~ 🌸
naomi closed this issue 2026-02-25 22:55:48 -08:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nhcarrigan/hikari-desktop#163