2026-09-27 13:9CVE-2026-100867VulnCheck
PUBLISHED5.2CWE-150

spaceship-prompt through 4.22.5 Terminal Escape Sequence Injection

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.

Problem type

Affected products

spaceship-prompt

spaceship-prompt

<= 4.22.5 - AFFECTED

References

JSON source

https://cveawg.mitre.org/api/cve/CVE-2026-100867
Click to expand
{
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "cveMetadata": {
    "cveId": "CVE-2026-100867",
    "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
    "assignerShortName": "VulnCheck",
    "dateUpdated": "2026-09-27T13:09:52.715Z",
    "dateReserved": "2026-09-27T00:20:54.407Z",
    "datePublished": "2026-09-27T13:09:52.715Z",
    "state": "PUBLISHED"
  },
  "containers": {
    "cna": {
      "providerMetadata": {
        "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "shortName": "VulnCheck",
        "dateUpdated": "2026-09-27T13:09:52.715Z"
      },
      "datePublic": "2026-08-07T00:00:00.000Z",
      "title": "spaceship-prompt through 4.22.5 Terminal Escape Sequence Injection",
      "descriptions": [
        {
          "lang": "en",
          "value": "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": [
        {
          "vendor": "spaceship-prompt",
          "product": "spaceship-prompt",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "0",
              "status": "affected",
              "versionType": "semver",
              "lessThanOrEqual": "4.22.5"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "lang": "en",
              "description": "Improper Neutralization of Escape, Meta, or Control Sequences",
              "cweId": "CWE-150",
              "type": "CWE"
            }
          ]
        }
      ],
      "references": [
        {
          "url": "https://github.com/spaceship-prompt/spaceship-prompt/issues/1567",
          "name": "GitHub Issue #1567",
          "tags": [
            "issue-tracking"
          ]
        },
        {
          "url": "https://github.com/spaceship-prompt/spaceship-prompt/blob/fd0d6653a134fe28f498eae1784fbb46d27f20f3/lib/section.zsh#L100-L102",
          "tags": [
            "technical-description"
          ]
        },
        {
          "url": "https://github.com/spaceship-prompt/spaceship-prompt/blob/fd0d6653a134fe28f498eae1784fbb46d27f20f3/sections/package.zsh#L41",
          "tags": [
            "technical-description"
          ]
        },
        {
          "url": "https://github.com/spaceship-prompt/spaceship-prompt",
          "tags": [
            "product"
          ]
        },
        {
          "url": "https://www.vulncheck.com/advisories/spaceship-prompt-through-4.22.5-terminal-escape-sequence-injection",
          "name": "VulnCheck Advisory: spaceship-prompt through 4.22.5 Terminal Escape Sequence Injection",
          "tags": [
            "third-party-advisory"
          ]
        }
      ],
      "metrics": [
        {
          "format": "CVSS"
        },
        {
          "format": "CVSS",
          "cvssV3_1": {
            "version": "3.1",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N",
            "attackVector": "LOCAL",
            "attackComplexity": "LOW",
            "privilegesRequired": "NONE",
            "userInteraction": "REQUIRED",
            "scope": "UNCHANGED",
            "confidentialityImpact": "NONE",
            "integrityImpact": "LOW",
            "availabilityImpact": "NONE",
            "baseScore": 3.3,
            "baseSeverity": "LOW"
          }
        }
      ],
      "credits": [
        {
          "lang": "en",
          "value": "George Chen",
          "type": "finder"
        }
      ]
    }
  }
}