CVE-2026-73506: Oh My Posh: Terminal escape sequence injection via unsanitized prompt segment data
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Oh My Poshto a version that resolves this vulnerability.Fixed in 29.35.1
Event History
Frequently Asked Questions
What is the severity of CVE-2026-73506?
The severity of CVE-2026-73506 is medium with a score of 6.1.
What kind of vulnerability is CVE-2026-73506?
CVE-2026-73506 is a terminal escape sequence injection vulnerability due to unsanitized prompt segment data.
How can I mitigate CVE-2026-73506?
To mitigate CVE-2026-73506, upgrade Oh My Posh to version 29.35.1 or later where the vulnerability is fixed.
Who is affected by CVE-2026-73506?
Users of Oh My Posh prior to version 29.35.1 are affected by CVE-2026-73506.
What data can be exploited through CVE-2026-73506?
CVE-2026-73506 allows attackers to control the current directory names and Git metadata, including commit subject and author information.