CVE-2026-73506 Oh My Posh: Terminal escape sequence injection via unsanitized prompt segment data
Attackers can inject terminal escape sequences via unsanitized prompt data to manipulate the terminal display, clipboard, or window title.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-73506?
CVE-2026-73506 is a medium-severity vulnerability in JanDeDobbeleer oh-my-posh, published on 13 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-150
Which versions are affected by CVE-2026-73506?
3 open source packages ship an affected version, including github.com/jandedobbeleer/oh-my-posh.
| Package | Affected | Fixed in |
|---|---|---|
github.com/jandedobbeleer/oh-my-posh Go | All versions | 29.35.1 |
github.com/jandedobbeleer/oh-my-posh Go | All versions | 29.35.1 |
github.com/jandedobbeleer/oh-my-posh Go | All versions | 29.35.1+incompatible |
How do I fix CVE-2026-73506?
Upgrade github.com/jandedobbeleer/oh-my-posh to a fixed version for your release line: 29.35.1 or 29.35.1+incompatible.
Is CVE-2026-73506 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-73506 exists.
Sources
Also known as GHSA-fwjx-9p69-h25h, GO-2026-6111.