CVE-2026-73506
MediumCVSS 6.1Exploitation Probability (EPSS)
Low risk3th percentile - higher than 3% of all known CVEs
Summary
Oh My Posh before version 29.35.1 does not remove terminal control characters (such as ESC, BEL, CSI, OSC) from directory names and Git metadata during prompt rendering. This allows terminal escape sequence injection, potentially leading to clipboard overwrite, prompt or screen spoofing, window title manipulation, or terminal disruption.
Risk Assessment
An attacker can exploit this vulnerability to take control of the user's terminal, steal data, or disrupt operations.
Recommendation
Update Oh My Posh to version 29.35.1 or later.
Original NVD description (English source)
Oh My Posh is the most customisable and low-latency cross platform/shell prompt renderer. Prior to 29.35.1, write(s rune) in src/terminal/writer.go emitted attacker-controlled current directory names and Git metadata, including Commit.Subject, Commit.Author.Name, Commit.Author.Email, and RawUpstreamURL, without removing C0/C1 terminal control characters such as ESC, BEL, CSI, and OSC, allowing terminal escape sequence injection during prompt rendering that could overwrite the clipboard, spoof the prompt or screen, manipulate the window title, or disrupt the terminal. This issue is fixed in version 29.35.1.

