Description
spaceship-prompt through 4.22.5 fails to sanitize control characters from project manifest version fields before rendering them in the zsh prompt. Attackers can embed ANSI/OSC escape sequences in version fields of package manifests to manipulate terminal output, rewrite window titles, or spoof displayed text when victims enter the directory.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| spaceship-prompt | spaceship-prompt | ≤ 4.22.5 | — |
References
- GitHub Issue #1567 issue-tracking
- https://github.com/spaceship-prompt/spaceship-prompt/blob/fd0d6653a134fe28f498eae1784fbb46d27f20f3/lib/section.zsh#L100-L102 technical-description
- https://github.com/spaceship-prompt/spaceship-prompt/blob/fd0d6653a134fe28f498eae1784fbb46d27f20f3/sections/package.zsh#L41 technical-description
- https://github.com/spaceship-prompt/spaceship-prompt product
- VulnCheck Advisory: spaceship-prompt through 4.22.5 Terminal Escape Sequence Injection third-party-advisory