Live threats

All CVEs / JanDeDobbeleer

CVE-2026-73505JanDeDobbeleer oh-my-posh

High 7.8

Priority
47
CVSS 3.1
7.8
EPSS
—
Auth required
Yes
Published
Aug 13, 2026
Updated
Oct 24, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94, CWE-1336
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for oh-my-posh.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/jandedobbeleer/oh-my-posh < 29.35.1 29.35.1 go get github.com/jandedobbeleer/oh-my-posh@v29.35.1
Go github.com/jandedobbeleer/oh-my-posh < 29.35.1+incompatible 29.35.1+incompatible go get github.com/jandedobbeleer/oh-my-posh@v29.35.1+incompatible

Per OSV / GitHub Advisories (GHSA-6xj8-qv9j-xcjq, GO-2026-6108). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.