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.
Published: 2026-08-13
Score: 6.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In Oh My Posh, versions prior to 29.35.1 emitted attacker‑controlled directory names and Git metadata without stripping control characters such as ESC, BEL, CSI, and OSC. This omission allows an adversary to inject terminal escape sequences during prompt rendering. Injected sequences can overwrite the clipboard, spoof the prompt or screen, manipulate the window title, or generally disrupt terminal operation. The flaw can be leveraged by anyone who can influence the content that appears in the prompt, so local users with access to affected prompt configurations may experience these effects.

Affected Systems

The vulnerability affects the Oh My Posh prompt renderer released by JanDeDobbeleer. All versions older than 29.35.1 are susceptible. Users running older releases of Oh My Posh on any supported operating system should consider the risk.

Risk and Exploitability

The CVSS score is 6.1, indicating medium severity, with score available and the vulnerability not yet listed in CISA’s KEV catalog. The EPSS score is < 1%, indicating a very low probability of exploitation. The likely attack vector is local, requiring an attacker to control or influence prompt segment data presented to the prompt renderer; this could happen through Git hooks, environment configuration, or by supplying malicious file names or directory paths. The impact, while not leading to full system compromise, can affect user experience, arouse suspicion, and potentially compromise clipboard data. Given the lack of confirmed exploitation and moderate CVSS score, the overall risk remains moderate but mitigations are recommended.

Generated by OpenCVE AI on August 15, 2026 at 01:52 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Oh My Posh to version 29.35.1 or later
  • Remove or sanitize any prompt configuration segments that include directory names or Git metadata to prevent unsanitized escape characters
  • Configure the terminal or shell to block or escape raw control sequences, or temporarily disable prompt rendering during sensitive operations

Generated by OpenCVE AI on August 15, 2026 at 01:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-fwjx-9p69-h25h Oh My Posh: Terminal escape sequence injection via unsanitized prompt segment data
History

Sat, 15 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-791
References
Metrics threat_severity

None

threat_severity

Moderate


Fri, 14 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
References
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 14 Aug 2026 10:00:00 +0000

Type Values Removed Values Added
First Time appeared Jandedobbeleer
Jandedobbeleer oh-my-posh
Vendors & Products Jandedobbeleer
Jandedobbeleer oh-my-posh

Thu, 13 Aug 2026 15:15:00 +0000

Type Values Removed Values Added
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.
Title Oh My Posh: Terminal escape sequence injection via unsanitized prompt segment data
Weaknesses CWE-150
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L'}


Subscriptions

Jandedobbeleer Oh-my-posh
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-14T15:37:42.051Z

Reserved: 2026-08-12T19:00:33.736Z

Link: CVE-2026-73506

cve-icon Vulnrichment

Updated: 2026-08-14T15:37:31.450Z

cve-icon NVD

Status : Received

Published: 2026-08-13T15:20:17.133

Modified: 2026-08-14T16:17:00.317

Link: CVE-2026-73506

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-13T14:23:02Z

Links: CVE-2026-73506 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-15T02:00:04Z

Weaknesses
  • CWE-150

    Improper Neutralization of Escape, Meta, or Control Sequences

  • CWE-791

    Incomplete Filtering of Special Elements