# CVE-2026-73506: Oh My Posh: Terminal escape sequence injection via unsanitized prompt segment data

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.1
- **CVSS:** 6.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-26)
- **CWE:** CWE-150
- **Aliases:** GHSA-fwjx-9p69-h25h, GO-2026-6111
- **Published:** 2026-07-24T22:35:52.000Z
- **Modified:** 2026-10-24T15:10:00.190Z

## Who should check

- Projects that depend on Go package github.com/jandedobbeleer/oh-my-posh (\< 29.35.1)
- Anyone running JanDeDobbeleer oh-my-posh \< 29.35.1

## 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.

## Affected and fixed versions

- Go `github.com/jandedobbeleer/oh-my-posh`: affected \< 29.35.1; fixed 29.35.1, 29.35.1+incompatible (osv)
- JanDeDobbeleer oh-my-posh: \< 29.35.1 (cvelist)

## Mitigation

- Upgrade github.com/jandedobbeleer/oh-my-posh to one of 29.35.1, 29.35.1+incompatible (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-73506. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-73506.md
Affected: github.com/jandedobbeleer/oh-my-posh < 29.35.1
Fixed in: 29.35.1, 29.35.1+incompatible

Steps:
1. Search this machine and project for github.com/jandedobbeleer/oh-my-posh (Go), JanDeDobbeleer oh-my-posh: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-73506 being exploited?

There is no confirmed exploitation: CVE-2026-73506 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-73506?

Medium: CVSS 6.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-73506?

github.com/jandedobbeleer/oh-my-posh \< 29.35.1.

### Is there a fix for CVE-2026-73506?

Yes. Fixed in 29.35.1, 29.35.1+incompatible. Upgrade github.com/jandedobbeleer/oh-my-posh to one of 29.35.1, 29.35.1+incompatible (or later in the same release line).

### How do I check if I'm affected by CVE-2026-73506?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/JanDeDobbeleer/oh-my-posh/security/advisories/GHSA-fwjx-9p69-h25h>
- patch: <https://github.com/JanDeDobbeleer/oh-my-posh/pull/7711>
- patch: <https://github.com/JanDeDobbeleer/oh-my-posh/commit/edcf3c88f3fb582e84358b385c49d33d04c04224>
- exploit: <https://github.com/Budibase/budibase/security/advisories/GHSA-fcrw-f7gg-6g9f>
- other: <https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v29.35.1>
- other: <https://github.com/JanDeDobbeleer/oh-my-posh>
- other: <https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v29.36.0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-73506>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-fwjx-9p69-h25h> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-6111> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-73506> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-73506>
