Repository navigation
Security fix. Windows and WSL users should upgrade. macOS and Linux were not affected.
Desktop notifications, spoken messages and audio playback on Windows and WSL are built as small PowerShell scripts. The text in them, including the agent's last message, was placed inside a PowerShell string behind an escaper that missed the typographic quotes “ ” „. PowerShell treats those as quotes too, so text containing them could close the string and run its own commands with your privileges. A prompt injection in content the agent read (a web page, an issue, tool output) could plant such text. The details are in the security advisory.
Text now reaches PowerShell base64-encoded and is decoded inside the script, so none of it is ever part of the script source. This covers all three toast backends, text to speech and the audio file path.
The same flaw also made ordinary German and French quotation marks break the script, so those notifications and spoken messages were silently lost. They work now.
The view sensor also passes claude plugin validate --strict on Claude Code 2.1.326, which now type-checks a hooks module. Its behaviour is unchanged.
Upgrade: audio-hooks upgrade, then /reload-plugins in any Claude Code session that is already open.
Until you upgrade: audio-hooks set notification_settings.mode audio_only and audio-hooks set tts_settings.enabled false.
Verified
- 888 tests on Windows, macOS and Linux with Python 3.9, 3.12 and 3.13. New guards: PowerShell's own parser must find no added command for 10 injection payloads in any toast backend or the speech script (they fail against 7.2.3), and no title or body text may appear in a generated script.
- Live on Windows with an injection payload: WinRT toast, NotifyIcon, speech and MediaPlayer all ran, and the payload did not.
Not run: a live check on WSL (same scripts, launched from WSL).
Reported privately under SECURITY.md. Thank you.