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.
Published: 2026-09-27
Score: 4.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Terminal Manipulation via Escape Sequence Injection
Action: Patch Upgrade
AI Analysis

Impact

The vulnerability arises because spaceship‑prompt does not sanitize control characters in project manifest version fields before rendering them in the zsh prompt. Attackers can embed ANSI and OSC escape sequences that are printed by the terminal, allowing them to rewrite window titles, alter prompt text, or otherwise control what the user sees. The flaw is an input validation issue (CWE‑150) and does not lead to code execution, data exfiltration, or other system compromise.

Affected Systems

Versions of spaceship‑prompt up through and including 4.22.5 are affected. Any installation that uses the prompt in a zsh environment and renders project manifest data for a project directory is vulnerable. Later releases beyond 4.22.5 are not impacted.

Risk and Exploitability

The CVSS score of 4.8 indicates a moderate impact. EPSS data is not available and the vulnerability is not listed in the CISA KEV catalog, indicating no widespread exploitation reported. Based on the description, the likely attack vector requires a local attacker to place a crafted manifest in a directory and for the victim to navigate to that directory while using zsh; it only manipulates console output and does not compromise confidentiality, integrity, or availability of the system.

Generated by OpenCVE AI on September 27, 2026 at 16:36 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade spaceship‑prompt to a version newer than 4.22.5, or apply the vendor’s patch when released.
  • Sanitize project manifest version fields by removing control characters or escape sequences before they reach the prompt rendering logic, either via manifest editing or a preprocessing step.
  • Configure the terminal or zsh environment to filter ANSI/OSC sequences, or wrap the prompt invocation in a script that sanitizes its output for additional protection.

Generated by OpenCVE AI on September 27, 2026 at 16:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 30 Sep 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 28 Sep 2026 16:45:00 +0000

Type Values Removed Values Added
First Time appeared Spaceship-prompt
Spaceship-prompt spaceship-prompt
Vendors & Products Spaceship-prompt
Spaceship-prompt spaceship-prompt

Sun, 27 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
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.
Title spaceship-prompt through 4.22.5 Terminal Escape Sequence Injection
Weaknesses CWE-150
References
Metrics cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N'}

cvssV4_0

{'score': 4.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Spaceship-prompt Spaceship-prompt
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-30T15:26:16.430Z

Reserved: 2026-09-27T00:20:54.407Z

Link: CVE-2026-100867

cve-icon Vulnrichment

Updated: 2026-09-30T15:26:11.974Z

cve-icon NVD

Status : Deferred

Published: 2026-09-27T13:16:37.810

Modified: 2026-09-30T16:17:04.067

Link: CVE-2026-100867

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-28T16:24:35Z

Weaknesses
  • CWE-150

    Improper Neutralization of Escape, Meta, or Control Sequences