CVE-2026-73506 PUBLISHED

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

Assigner: GitHub_M
Reserved: 12.08.2026 Published: 13.08.2026 Updated: 13.08.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
CVSS Score: 6.1

Product Status

Vendor JanDeDobbeleer
Product oh-my-posh
Versions
  • Version < 29.35.1 is affected

References

Problem Types

  • CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences CWE