Oh My Posh: Terminal escape sequence injection via unsanitized prompt segment data
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| JanDeDobbeleer | oh-my-posh | before 29.35.1 | 29.35.1 | Patch available | CNA |
| — | github.com/jandedobbeleer/oh-my-posh (Go) | before 29.35.1 | 29.35.1 | Patch available | GHSA-fwjx-9p69-h25h |
- oh-my-posh VendorJanDeDobbeleer Affected before 29.35.1 Fixed in 29.35.1 Patch available CNA
- github.com/jandedobbeleer/oh-my-posh (Go) Vendor— Affected before 29.35.1 Fixed in 29.35.1 Patch available GHSA-fwjx-9p69-h25h
Remediation
- Fix · CNA oh-my-posh (JanDeDobbeleer) Fixed in 29.35.1
- Fix · GHSA-fwjx-9p69-h25h github.com/jandedobbeleer/oh-my-posh (Go) Fixed in 29.35.1 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-73506
- 2026-10-03 Alias added: GHSA-fwjx-9p69-h25h
References
Other 6
- https://github.com/JanDeDobbeleer/oh-my-posh/security/advisories/GHSA-fwjx-9p69-h25h
- https://github.com/JanDeDobbeleer/oh-my-posh/pull/7711
- https://github.com/JanDeDobbeleer/oh-my-posh/commit/edcf3c88f3fb582e84358b385c49d33d04c04224
- https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v29.35.1
- https://github.com/JanDeDobbeleer/oh-my-posh
- https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v29.36.0
More JanDeDobbeleer vulnerabilities
- TI-2026-51615 Oh My Posh: Arbitrary command execution via template injection in the path segment CVSS 3.1HIGH 7.8
Sources
- CVE-2026-73506 · CVE Program
- CVE-2026-73506 · NVD
- FIRST EPSS
- GHSA-fwjx-9p69-h25h · GitHub Advisory Database · CC BY 4.0
- CVE-2026-73506 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences