Vulnerability · Published Aug 13, 2026 · Assigned by GitHub_M

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

High 7.8

In plain English

A high-severity code injection in oh-my-posh from JanDeDobbeleer. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 12% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.2%top 88.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/jandedobbeleer/oh-my-posh29.35.1GHSA-6xj8-qv9j-xcjq
Gogithub.com/jandedobbeleer/oh-my-posh29.35.1+incompatibleGO-2026-6108

Affected products (as reported)

VendorProductVersions
JanDeDobbeleer oh-my-posh < 29.35.1

Weakness: CWE-94, CWE-1336 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References