---
id: CVE-2026-73505
title: >-
  Oh My Posh is the most customisable and low-latency cross platform/shell
  prompt renderer
summary: >-
  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 functi…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-94
  - CWE-1336
vendor: jandedobbeleer
product: github.com/jandedobbeleer/oh-my-posh
affected:
  - github.com/jandedobbeleer/oh-my-posh < 29.35.1
patched:
  - github.com/jandedobbeleer/oh-my-posh 29.35.1
published: '2026-08-13'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T21:02:22.660'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-73505'
references:
  - url: >-
      https://github.com/JanDeDobbeleer/oh-my-posh/commit/88ddbe0b0a4dd13cc345996108c9869493f2c690
    label: security-advisories@github.com
  - url: 'https://github.com/JanDeDobbeleer/oh-my-posh/pull/7711'
    label: security-advisories@github.com
  - url: 'https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v29.35.1'
    label: security-advisories@github.com
  - url: >-
      https://github.com/JanDeDobbeleer/oh-my-posh/security/advisories/GHSA-6xj8-qv9j-xcjq
    label: security-advisories@github.com
  - url: >-
      https://github.com/JanDeDobbeleer/oh-my-posh/security/advisories/GHSA-6xj8-qv9j-xcjq
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://github.com/JanDeDobbeleer/oh-my-posh'
  - url: 'https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v29.36.0'
tags:
  - nvd
  - osv
  - go
epss: 0.00212
epssPercentile: 0.10218
aliases:
  - GHSA-6xj8-qv9j-xcjq
ecosystem: go
ingestedAt: '2026-08-13T19:18:21.089Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-73505)

Affected packages:

- `github.com/jandedobbeleer/oh-my-posh < 29.35.1`

Patched in:

- `github.com/jandedobbeleer/oh-my-posh 29.35.1`

Source: https://osv.dev/vulnerability/GHSA-6xj8-qv9j-xcjq
