Description
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.
Affected products
jarrodwatts: claude hud
References4
- github.com/jarrodwatts/claude-hud/commit/234d9aad919b51326a43bc… Patch
- github.com/jarrodwatts/claude-hud/pull/487 Issue TrackingPatch
- github.com/jarrodwatts/claude-hud/issues/485 Issue Tracking
- www.vulncheck.com/advisories/claude-hud-terminal-injection-via-… Third Party Advisory
Metrics
- CVSS 3.1
-
4.6
MEDIUM
Score source: CNA
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N - CVSS 4.0
-
2.4
LOW
Score source: CNA
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 0% percentile: 1 · as of 14 November 2026
- CWE
- CWE-150
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.