Skip to content
OpenAdvisories
Medium · 6.1 CVE-2026-73506 EUVD-2026-58081GHSA-fwjx-9p69-h25hGO-2026-6111

Oh My Posh: Terminal escape sequence injection via unsanitized prompt segment data

Published Aug 13, 2026 · Updated Aug 14, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
JanDeDobbeleer oh-my-posh < 29.35.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SLES for SAP 16.0 govulncheck-vulndb 0.0.20260827T195228-160000.1.1 SUSE-SU-2026:23625-1
SLES 16.0 govulncheck-vulndb 0.0.20260827T195228-160000.1.1 SUSE-SU-2026:23625-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260827T195228-160000.1.1 openSUSE-SU-2026:21761-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/jandedobbeleer/oh-my-posh < 29.35.1 29.35.1 GHSA-fwjx-9p69-h25h
Go github.com/jandedobbeleer/oh-my-posh < 29.35.1+incompatible 29.35.1+incompatible GO-2026-6111

Advisories 2

References