CVE-2026-73506 Oh My Posh: Terminal escape sequence injection via unsanitized prompt segment data
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
Description
Oh My Posh is the most customisable and low-latency cross platform/shell prompt renderer. Prior to 29.35.1, write(s rune) in src/terminal/writer.go emitted attacker-controlled current directory names and Git metadata, including Commit.Subject, Commit.Author.Name, Commit.Author.Email, and RawUpstreamURL, without removing C0/C1 terminal control characters such as ESC, BEL, CSI, and OSC, allowing terminal escape sequence injection during prompt rendering that could overwrite the clipboard, spoof the prompt or screen, manipulate the window title, or disrupt the terminal. This issue is fixed in version 29.35.1.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| jandedobbeleer github.com/jandedobbeleer/oh-my-posh(Go) | < 29.35.1; < 29.35.1+incompatible; <= 29.35.0 | 29.35.1, 29.35.1+incompatible | Fixed |
| jandedobbeleer github.com/jandedobbeleer/oh-my-posh | = < 29.35.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| jandedobbeleer github.com/jandedobbeleer/oh-my-posh(Go) | < 29.35.1 | 29.35.1 |
| jandedobbeleer github.com/jandedobbeleer/oh-my-posh(Go) | < 29.35.1+incompatible | 29.35.1+incompatible |
| jandedobbeleer github.com/jandedobbeleer/oh-my-posh | = < 29.35.1 | No fix listed |
| jandedobbeleer github.com/jandedobbeleer/oh-my-posh(Go) | <= 29.35.0 | No fix listed |
References
- https://github.com/JanDeDobbeleer/oh-my-posh/security/advisories/GHSA-fwjx-9p69-h25h vendor-advisory
- https://github.com/JanDeDobbeleer/oh-my-posh/commit/edcf3c88f3fb582e84358b385c49d33d04c04224 patch
- github.com product
- https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v29.35.1
- github.com
- https://github.com/JanDeDobbeleer/oh-my-posh/pull/7711
- github.com exploit
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2515414 issue-tracking
- www.cve.org
- nvd.nist.gov
- github.com
- ENISA EUVD EUVD-2026-58081 third-party-advisory