Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/jandedobbeleer/oh-my-posh
  4. ›
  5. GHSA-fwjx-9p69-h25h

GHSA-fwjx-9p69-h25h: Oh My Posh: Terminal escape sequence injection via unsanitized prompt segment data

July 24, 2026

Oh My Posh renders dynamic, potentially attacker-controlled strings (the current directory name, Git commit metadata, environment variable values, command output) into the prompt without neutralizing raw terminal control characters. An attacker who controls one of these values can inject ANSI/OSC escape sequences that the victim’s terminal executes on every prompt render. (This is separate from the path-segment command-execution report; it has a different root cause and fix.)

References

  • github.com/JanDeDobbeleer/oh-my-posh/commit/edcf3c88f3fb582e84358b385c49d33d04c04224
  • 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-fwjx-9p69-h25h
  • github.com/advisories/GHSA-fwjx-9p69-h25h

Code Behaviors & Features

Detect and mitigate GHSA-fwjx-9p69-h25h with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 29.35.1

Fixed versions

  • 29.35.1

Solution

Upgrade to version 29.35.1 or above.

Impact 6.1 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences

Source file

go/github.com/jandedobbeleer/oh-my-posh/GHSA-fwjx-9p69-h25h.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 08 Aug 2026 00:17:57 +0000.