{"answers":{"affected":"3 open source packages ship an affected version, including github.com/jandedobbeleer/oh-my-posh.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-73505 exists.","fix":"Upgrade github.com/jandedobbeleer/oh-my-posh to a fixed version for your release line: 29.35.1 or 29.35.1+incompatible.","what":"CVE-2026-73505 is a high-severity code injection vulnerability in JanDeDobbeleer oh-my-posh, published on 13 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-73505 and fix it if it is affected.\n\nWhat it is: CVE-2026-73505 is a high-severity code injection vulnerability in JanDeDobbeleer oh-my-posh, published on 13 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-73505 exists.\n\nAffected packages and fixed versions:\n- github.com/jandedobbeleer/oh-my-posh (Go): affected all versions; fixed in 29.35.1\n- github.com/jandedobbeleer/oh-my-posh (Go): affected all versions; fixed in 29.35.1\n- github.com/jandedobbeleer/oh-my-posh (Go): affected all versions; fixed in 29.35.1+incompatible\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-73505/ (Markdown: https://insights.sbomify.com/CVE-2026-73505/index.md)","id":"CVE-2026-73505","markdown":"https://insights.sbomify.com/CVE-2026-73505/index.md","name":"CVE-2026-73505","record":{"aliases":["GHSA-6xj8-qv9j-xcjq","GO-2026-6108"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Shell prompt renderer","requires_auth":"none","summary":"An attacker can execute arbitrary OS commands by placing a malicious directory name that triggers template injection in Oh My Posh.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Oh My Posh: Arbitrary command execution via template injection in the path segment","id":"CVE-2026-73505","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":3,"n_references":4,"next":{"headline":"Oh My Posh: Terminal escape sequence injection via unsanitized prompt segment data","id":"CVE-2026-73506"},"packages":[{"ecosystem":"Go","fixed":["29.35.1"],"introduced":["0"],"last_affected":[],"package":"github.com/jandedobbeleer/oh-my-posh","purl":null,"source":"GHSA-6xj8-qv9j-xcjq"},{"ecosystem":"Go","fixed":["29.35.1"],"introduced":["0"],"last_affected":[],"package":"github.com/jandedobbeleer/oh-my-posh","purl":"pkg:golang/github.com/jandedobbeleer/oh-my-posh","source":"GHSA-6xj8-qv9j-xcjq"},{"ecosystem":"Go","fixed":["29.35.1+incompatible"],"introduced":["0"],"last_affected":[],"package":"github.com/jandedobbeleer/oh-my-posh","purl":"pkg:golang/github.com/jandedobbeleer/oh-my-posh","source":"GO-2026-6108"}],"prev":{"headline":"kin-openapi openapi3filter: unauthenticated nil-pointer panic when validating a request against a `content` parameter whose media type has no schema","id":"CVE-2026-73502"},"products":["oh-my-posh"],"published":"2026-08-13","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-13","vendors":["JanDeDobbeleer"]},"summary":"An attacker can execute arbitrary OS commands by placing a malicious directory name that triggers template injection in Oh My Posh.","url":"https://insights.sbomify.com/CVE-2026-73505/"}