Vulnérabilité dans github.com/jandedobbeleer/oh-my-posh (CVE-2026-73506)
Résumé
Vulnérabilité dans github.com/jandedobbeleer/oh-my-posh (CVE-2026-73506). Risque d'opérations non autorisées ou de divulgation. Exploitable via formats.EscapeSequences. Atténuation : mise à jour vers 29.35.1 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Summary
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.)
Details
src/terminal/writer.go, write(s rune): the literal characters of rendered segment content are emitted to the output buffer, and the only neutralization is a lookup in formats.EscapeSequences, which per shell contains only the shell's prompt-length markers (\ for bash, % for zsh, nothing for fish/pwsh/cmd/nu). Raw C0/C1 control bytes (ESC 0x1b, BEL 0x07, CSI, OSC) are written verbatim.
Oh My Posh's own styling is emitted through separate paths (writeEscapedAnsiString, writeColorise, builder.WriteString(formats.Hyperlink...)), so any control rune reaching write(s rune) originates from rendered data. trimAnsi is already applied to the console title (FormatTitle) but not to the prompt body.
Attacker-controlled sources (both verified)
- Current directory name (default config, Linux/macOS). Directory names may contain any byte except
/and NUL, including0x1b. The path segment renders the working directory in every theme. - Git commit subject / aut…
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-73506 a été découverte dans github.com/jandedobbeleer/oh-my-posh.
Des attaquants peuvent cibler un point d'entrée spécifique comme formats.EscapeSequences à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation. Score CVSS : 6.1/10.
Action : mettez à jour github.com/jandedobbeleer/oh-my-posh vers 29.35.1 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/jandedobbeleer/oh-my-posh CVE-2026-73506 » sur le site de l'éditeur.
CVE-2026-73506 (github.com/jandedobbeleer/oh-my-posh) — CWE-150 / CVSS v3 6.1
Vecteur d'attaque : local / non authentifié
Surface d'attaque : formats.EscapeSequences / writeEscapedAnsiString / writeColorise / trimAnsi
Correctif : 29.35.1 — appliquer immédiatement
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une vulnérabilité (CWE-150) affecte github.com/jandedobbeleer/oh-my-posh. Les attaquants atteignent le code vulnérable via formats.EscapeSequences sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/jandedobbeleer/oh-my-posh. Surface d'attaque : formats.EscapeSequences / writeEscapedAnsiString / writeColorise / trimAnsi.
Gravité : Moyenne (CVSS 6.1/10). Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 29.35.1.
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'github.com/jandedobbeleer/oh-my-posh' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/jandedobbeleer/oh-my-poshを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade github.com/jandedobbeleer/oh-my-posh to 29.35.1ステージング環境で 29.35.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web security-advisories@github.com
- web github.com