CVE-2026-73506

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

Published Aug 13, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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
Type Values Removed Values Added
References
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Jandedobbeleer
Jandedobbeleer oh-my-posh
Vendors & Products Jandedobbeleer
Jandedobbeleer oh-my-posh
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'}

Weaknesses
  • CWE-150

    Improper Neutralization of Escape, Meta, or Control Sequences

  • CWE-791

    Incomplete Filtering of Special Elements

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 14, 2026, 3:37 PM
Reserved
Aug 12, 2026, 7:00 PM
Status
Deferred
Published
Aug 13, 2026, 3:20 PM
Modified
Oct 24, 2026, 3:10 PM
Severity
Moderate
Public date
Aug 13, 2026, 2:23 PM