CVE-2026-100867

spaceship-prompt through 4.22.5 Terminal Escape Sequence Injection

Published Sep 27, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Spaceship-prompt
Spaceship-prompt spaceship-prompt
Vendors & Products Spaceship-prompt
Spaceship-prompt spaceship-prompt
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'}

Weaknesses
  • CWE-150

    Improper Neutralization of Escape, Meta, or Control Sequences

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 30, 2026, 3:26 PM
Reserved
Sep 27, 2026, 12:20 AM
Status
Deferred
Published
Sep 27, 2026, 1:16 PM
Modified
Sep 30, 2026, 4:17 PM