Medium
spaceship-prompt through 4.22.5 Terminal Escape Sequence Injection
Type: advisorySources: OSV
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-100867
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 20:22 UTC · Revision 1
Source evidence
spaceship-prompt through 4.22.5 Terminal Escape Sequence Injection
core-osv · Original sourcePublished 27 Sept 2026, 13:09 UTC
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.
osv:CVE-2026-100867
Complete source record
{
"id": "e383d9eb08524ea9e86c199277cb048e46c2906d7ce87feb6ce791b738e85bb5",
"url": "https://osv.dev/vulnerability/CVE-2026-100867",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "spaceship-prompt through 4.22.5 Terminal Escape Sequence Injection",
"summary": "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.",
"evidence": "osv:CVE-2026-100867",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-100867",
"aliases": [
"CVE-2026-100867"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/spaceship-prompt/spaceship-prompt",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "fd0d6653a134fe28f498eae1784fbb46d27f20f3"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "4.22.5"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "4.22.5"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"v4.22.5",
"v4.22.4",
"v4.22.3",
"v4.22.2",
"v4.22.1",
"v4.22.0",
"v4.19.2",
"v4.19.1",
"v4.19.0",
"v4.17.0",
"v4.16.2",
"v4.16.1",
"v4.16.0",
"v4.15.3",
"v4.15.2",
"v4.15.1",
"v4.15.0",
"v4.14.1",
"v4.14.0",
"v4.13.5",
"v4.13.4",
"v4.13.3",
"v4.12.0",
"v4.11.1",
"v4.11.0",
"v4.10.1",
"v3.11.0",
"v3.10.0",
"v3.9.1",
"v3.9.0",
"v3.8.2",
"v3.8.1",
"v3.8.0",
"v3.7.2",
"v3.7.1",
"v3.7.0",
"v3.6.0",
"v3.5.0",
"v3.4.1",
"v3.3.0",
"v3.2.0",
"v3.1.0",
"v3.0.3",
"v3.0.2",
"v3.0.1",
"v3.0.0",
"v2.11.0",
"v2.10.4",
"v2.10.3",
"v2.10.2",
"v2.10.1",
"v2.10.0",
"v2.9.0",
"v2.8.0",
"v2.7.3",
"v2.7.2",
"v2.7.1",
"v2.7.0",
"v2.6.2",
"v2.6.0",
"v2.6.1",
"v2.5.3",
"v2.5.2",
"v2.5.1",
"v2.5.0",
"v2.4.2",
"v2.4.1",
"v2.4.0",
"v2.3.1",
"v2.3.0",
"v2.2.2",
"v2.2.1",
"v2.2.0",
"v2.1.0",
"v2.0.1",
"v2.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100867.json"
}
}
],
"modified": "2026-10-28T02:30:39.187479169Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100867.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-100867",
"https://www.vulncheck.com/advisories/spaceship-prompt-through-4.22.5-terminal-escape-sequence-injection",
"https://github.com/spaceship-prompt/spaceship-prompt/issues/1567",
"https://github.com/spaceship-prompt/spaceship-prompt",
"https://github.com/spaceship-prompt/spaceship-prompt/blob/fd0d6653a134fe28f498eae1784fbb46d27f20f3/lib/section.zsh#L100-L102",
"https://github.com/spaceship-prompt/spaceship-prompt/blob/fd0d6653a134fe28f498eae1784fbb46d27f20f3/sections/package.zsh#L41"
],
"provider_metadata": {
"cwe_ids": [
"CWE-150"
],
"cna_assigner": "VulnCheck",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100867.json"
}
},
"related_cves": [
{
"value": "CVE-2026-100867",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 506628,
"published_at": "2026-09-27T13:09:52.715+00:00"
}