CVE-2026-100867 Details
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.
A vulnerability exists in Spaceship Prompt versions through 4.22.5, where control characters are not properly sanitized in project manifest version fields before they are displayed in the Zsh prompt. This flaw allows attackers to insert ANSI/OSC escape sequences into the version fields of package manifests. When a victim navigates into a directory containing such a manifest, the injected sequences can manipulate terminal output, alter window titles, or spoof displayed text. The issue arises because the version field in various package manifests, including package.json, Cargo.toml, composer.json, Project.toml, pyproject.toml, and pubspec.yaml, lacks restrictions on control characters, creating a vector for exploitation.
The vulnerability can be addressed by modifying the 'spaceship::section::render' function in 'lib/section.zsh' to strip control characters from the content, prefix, suffix, and symbol values before they are written into the prompt. This adjustment would ensure that all dynamic section content is sanitized, preventing similar injection attacks through other manifest files or section types.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 27, 2026CISA-ADP
Assessed Sep 30, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-150 | Improper Neutralization of Escape, Meta, or Control Sequences | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| spaceship-prompt | <= 4.22.5 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 30, 2026 | CVE Modified | CISA-ADP |
| Sep 27, 2026 | New CVE Received | [email protected] |
Volerion