CVE-2026-100867: spaceship-prompt through 4.22.5 Terminal Escape Sequence Injection

Published Sep 27, 2026
·
Updated

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.

Affected Software

1 affected component
spaceship-prompt spaceship-prompt<=4.22.5

Event History

Sep 27, 2026
CVE Published
via MITRE·01:09 PM
Data Sourced
via MITRE·01:09 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:16 PM
DescriptionSeverityWeakness
Apr 2, 58709
Event
via NVD·01:24 PM

Frequently Asked Questions

1

Who is exposed to this issue?

Users of spaceship-prompt through version 4.22.5 are exposed when they enter a directory containing a project manifest whose version field includes terminal control characters.

2

What does an attacker need to exploit it?

An attacker needs to place ANSI or OSC escape sequences in a version field in a package manifest and induce a victim using the affected prompt to enter that project directory. The victim must interact with the terminal prompt for the malicious content to be rendered.

3

What can successful exploitation do?

The injected sequences can manipulate terminal output, rewrite the terminal window title, or spoof text displayed to the user. The available data indicates integrity impact only, with no confidentiality or availability impact.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203