Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/jandedobbeleer/oh-my-posh
  4. ›
  5. GHSA-6xj8-qv9j-xcjq

GHSA-6xj8-qv9j-xcjq: Oh My Posh: Arbitrary command execution via template injection in the path segment

July 24, 2026 (updated August 13, 2026)

Oh My Posh re-renders the resolved path string, which contains the raw folder names taken from the filesystem, through the Go text/template engine. That engine’s function map exposes a cmd function that runs arbitrary OS commands. A directory whose name contains a Go template expression is therefore evaluated when the prompt renders, giving arbitrary command execution as the current user as soon as the shell is inside (or below) that directory. The built-in default configuration is affected.

References

  • github.com/JanDeDobbeleer/oh-my-posh/commit/88ddbe0b0a4dd13cc345996108c9869493f2c690
  • github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v29.35.1
  • github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v29.36.0
  • github.com/JanDeDobbeleer/oh-my-posh/security/advisories/GHSA-6xj8-qv9j-xcjq
  • github.com/advisories/GHSA-6xj8-qv9j-xcjq
  • nvd.nist.gov/vuln/detail/CVE-2026-73505

Code Behaviors & Features

Detect and mitigate GHSA-6xj8-qv9j-xcjq with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 29.35.1

Fixed versions

  • 29.35.1

Solution

Upgrade to version 29.35.1 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

go/github.com/jandedobbeleer/oh-my-posh/GHSA-6xj8-qv9j-xcjq.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:33 +0000.