Read the docs
TI-2026-51616 Aliases CVE-2026-73506GHSA-fwjx-9p69-h25h

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

Priority MEDIUM 60CWE-150Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
Low · Low · Low
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00179 7th percentileScored 2026-11-07
Fix Fixed oh-my-posh (JanDeDobbeleer): 29.35.1github.com/jandedobbeleer/oh-my-posh (Go): 29.35.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
JanDeDobbeleeroh-my-poshbefore 29.35.129.35.1Patch availableCNA
—github.com/jandedobbeleer/oh-my-posh (Go)before 29.35.129.35.1Patch availableGHSA-fwjx-9p69-h25h
  • oh-my-posh VendorJanDeDobbeleer Affected before 29.35.1 Fixed in 29.35.1 Patch available CNA
  • github.com/jandedobbeleer/oh-my-posh (Go) Vendor— Affected before 29.35.1 Fixed in 29.35.1 Patch available GHSA-fwjx-9p69-h25h

Remediation

  • Fix · CNA oh-my-posh (JanDeDobbeleer) Fixed in 29.35.1
  • Fix · GHSA-fwjx-9p69-h25h github.com/jandedobbeleer/oh-my-posh (Go) Fixed in 29.35.1 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-73506
  2. 2026-10-03 Alias added: GHSA-fwjx-9p69-h25h

References

  • TI-2026-51615 Oh My Posh: Arbitrary command execution via template injection in the path segment CVSS 3.1HIGH 7.8

Sources