{"id":"CVE-2026-100867","summary":"spaceship-prompt through 4.22.5 Terminal Escape Sequence Injection","details":"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.","modified":"2026-09-29T03:46:05.731513248Z","published":"2026-09-27T13:09:52.715Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100867.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-150"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100867.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100867"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/spaceship-prompt-through-4.22.5-terminal-escape-sequence-injection"},{"type":"REPORT","url":"https://github.com/spaceship-prompt/spaceship-prompt/issues/1567"},{"type":"PACKAGE","url":"https://github.com/spaceship-prompt/spaceship-prompt"},{"type":"ARTICLE","url":"https://github.com/spaceship-prompt/spaceship-prompt/blob/fd0d6653a134fe28f498eae1784fbb46d27f20f3/lib/section.zsh#L100-L102"},{"type":"ARTICLE","url":"https://github.com/spaceship-prompt/spaceship-prompt/blob/fd0d6653a134fe28f498eae1784fbb46d27f20f3/sections/package.zsh#L41"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/spaceship-prompt/spaceship-prompt","events":[{"introduced":"0"},{"fixed":"fd0d6653a134fe28f498eae1784fbb46d27f20f3"}],"database_specific":{"source":["AFFECTED_FIELD","DESCRIPTION"],"extracted_events":[{"introduced":"0"},{"last_affected":"4.22.5"},{"fixed":"4.22.5"}]}}],"versions":["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"}}],"schema_version":"1.9.0","severity":[{"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"}]}