CVE-2026-100867
Received Received - Intake

Spaceship-Prompt Terminal Manipulation via Malicious Manifest Version

Vulnerability report for CVE-2026-100867, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-27

Last updated on: 2026-09-27

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-27
Last Modified
2026-09-27
Generated
2026-09-27
AI Q&A
2026-09-27
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
spaceship_prompt spaceship_prompt to 4.22.5 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-150 The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as escape, meta, or control character sequences when they are sent to a downstream component.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in spaceship-prompt through version 4.22.5 allows attackers to inject ANSI or OSC escape sequences into package manifest version fields. These sequences are not sanitized before being rendered in the zsh prompt, enabling manipulation of terminal output, window titles, or displayed text when users enter a directory with a malicious manifest.

Detection Guidance

Check package manifests like package.json or Cargo.toml for version fields containing ANSI/OSC escape sequences. Use grep to search for control characters in version strings: grep -r $'\x1b\[' . or grep -r $'\x1c' .

Inspect spaceship-prompt configuration files for unfiltered dynamic content rendering. Review section.zsh and package.zsh for improper sanitization of version fields.

Impact Analysis

This vulnerability could allow attackers to alter terminal output, change window titles, or spoof displayed text. This might lead to confusion, misdirection, or even facilitate further attacks by tricking users into executing unintended commands.

Compliance Impact

This vulnerability does not directly impact GDPR or HIPAA compliance as it primarily affects terminal output manipulation rather than data privacy or security controls. However, if malicious actors exploit this to deceive users into executing unintended commands, it could indirectly lead to unauthorized data access or actions violating compliance requirements.

Mitigation Strategies

Upgrade spaceship-prompt to the latest version beyond 4.22.5 where escape sequences are sanitized. Apply patches from the official repository if available.

Manually sanitize version fields in package manifests by removing ANSI/OSC escape sequences before rendering. Implement input validation in scripts handling dynamic content.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-100867. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart