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

onefetch through 2.28.1 Terminal Escape Sequence Injection

onefetch through 2.28.1 writes repository information field values to the terminal without removing control characters, allowing terminal escape sequence injection. Attackers can embed ANSI/OSC escape sequences in project manifest version and name fields to manipulate terminal output, rewrite window titles, hide text, or trigger emulator-specific behavior when victims run onefetch.

Problem type

Affected products

o2sh

onefetch

<= 2.28.1 - AFFECTED

References

JSON source

https://cveawg.mitre.org/api/cve/CVE-2026-100866
Click to expand
{
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "cveMetadata": {
    "cveId": "CVE-2026-100866",
    "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
    "assignerShortName": "VulnCheck",
    "dateUpdated": "2026-09-27T13:09:52.041Z",
    "dateReserved": "2026-09-27T00:20:54.407Z",
    "datePublished": "2026-09-27T13:09:52.041Z",
    "state": "PUBLISHED"
  },
  "containers": {
    "cna": {
      "providerMetadata": {
        "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "shortName": "VulnCheck",
        "dateUpdated": "2026-09-27T13:09:52.041Z"
      },
      "datePublic": "2026-08-07T00:00:00.000Z",
      "title": "onefetch through 2.28.1 Terminal Escape Sequence Injection",
      "descriptions": [
        {
          "lang": "en",
          "value": "onefetch through 2.28.1 writes repository information field values to the terminal without removing control characters, allowing terminal escape sequence injection. Attackers can embed ANSI/OSC escape sequences in project manifest version and name fields to manipulate terminal output, rewrite window titles, hide text, or trigger emulator-specific behavior when victims run onefetch."
        }
      ],
      "affected": [
        {
          "vendor": "o2sh",
          "product": "onefetch",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "0",
              "status": "affected",
              "versionType": "semver",
              "lessThanOrEqual": "2.28.1"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "lang": "en",
              "description": "Improper Neutralization of Escape, Meta, or Control Sequences",
              "cweId": "CWE-150",
              "type": "CWE"
            }
          ]
        }
      ],
      "references": [
        {
          "url": "https://github.com/o2sh/onefetch/issues/1828",
          "name": "GitHub Issue #1828",
          "tags": [
            "issue-tracking"
          ]
        },
        {
          "url": "https://github.com/o2sh/onefetch/blob/9beb80329cf2e5bd784270f668139f0bafb48e2b/src/info/utils/info_field.rs#L43-L55",
          "tags": [
            "technical-description"
          ]
        },
        {
          "url": "https://github.com/o2sh/onefetch/blob/9beb80329cf2e5bd784270f668139f0bafb48e2b/src/info/version.rs#L33-L35",
          "tags": [
            "technical-description"
          ]
        },
        {
          "url": "https://github.com/o2sh/onefetch",
          "tags": [
            "product"
          ]
        },
        {
          "url": "https://www.vulncheck.com/advisories/onefetch-through-2.28.1-terminal-escape-sequence-injection",
          "name": "VulnCheck Advisory: onefetch through 2.28.1 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"
        }
      ]
    }
  }
}