Claude HUD through 0.0.12, patched in commit 234d9aa, constructs OSC 8 terminal hyperlink escape sequences using raw cwd and branchUrl values without stripping control characters or encoding embedded values, allowing attackers to inject arbitrary ANSI codes into terminal sessions. Attackers can embed ESC+backslash sequences in the current working directory or branch URL to execute malicious ANSI codes including text color changes, forged prompts, and OSC 52 clipboard writes, or trigger outbound HTTP requests to attacker-controlled remotes when hyperlinks are clicked.
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://github.com/jarrodwatts/claude-hud/commit/234d9aad919b51326a43bcf90b45ae35c23afc30 Patch
- https://github.com/jarrodwatts/claude-hud/pull/487 Issue Tracking, Patch
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 2.4 · jarrodwattsNVD modified 2026-10-26 13:10
Affected (CPE criteria) 1
cpe:2.3:a:jarrodwatts:claude_hud:*:*:*:*:*:claude_code:*:*
References 4
- https://github.com/jarrodwatts/claude-hud/commit/234d9aad919b51326a43bcf90b45ae35c23afc30 Patch
- https://github.com/jarrodwatts/claude-hud/issues/485 Issue Tracking
- https://github.com/jarrodwatts/claude-hud/pull/487 Issue Tracking, Patch
- https://www.vulncheck.com/advisories/claude-hud-terminal-injection-via-osc-8-hyperlinks Third Party Advisory