GHSA-fwjx-9p69-h25h: Oh My Posh: Terminal escape sequence injection via unsanitized prompt segment data
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 →