Skip to content

CVE-2026-73506 Oh My Posh: Terminal escape sequence injection via unsanitized prompt segment data

MediumCVSS 6.1 EPSS 0.18%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
jandedobbeleer github.com/jandedobbeleer/oh-my-posh(Go) < 29.35.1; < 29.35.1+incompatible; <= 29.35.0 29.35.1, 29.35.1+incompatible Fixed
jandedobbeleer github.com/jandedobbeleer/oh-my-posh = < 29.35.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
jandedobbeleer github.com/jandedobbeleer/oh-my-posh(Go) < 29.35.1 29.35.1
jandedobbeleer github.com/jandedobbeleer/oh-my-posh(Go) < 29.35.1+incompatible 29.35.1+incompatible
jandedobbeleer github.com/jandedobbeleer/oh-my-posh = < 29.35.1 No fix listed
jandedobbeleer github.com/jandedobbeleer/oh-my-posh(Go) <= 29.35.0 No fix listed

References