GitHub CLI: Terminal escape sequence injection in multiple `gh` commands
GitHub CLI (gh) is GitHub's official command line tool. Prior to version 2.97.0, multiple GitHub CLI commands printed externally controlled gist, API, pull request, release, codespace, skill, or agent-task content without neutralizing terminal escape sequences. An attacker who can influence that content can embed escape sequences that are interpreted by the terminal of a user who runs an affected command, with impact ranging from cosmetic manipulation of the title or on-screen content to, on some terminal emulators, command execution. This extends the same class of issue as CVE-2026-45803—which addressed only gh run view --log—to the other affected command paths. This issue is fixed in version 2.97.0.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-64654
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 14:11 UTC · Revision 1
Source evidence
GitHub CLI: Terminal escape sequence injection in multiple `gh` commands
core-osv · Original sourcePublished 6 Aug 2026, 18:27 UTC
GitHub CLI (gh) is GitHub's official command line tool. Prior to version 2.97.0, multiple GitHub CLI commands printed externally controlled gist, API, pull request, release, codespace, skill, or agent-task content without neutralizing terminal escape sequences. An attacker who can influence that content can embed escape sequences that are interpreted by the terminal of a user who runs an affected command, with impact ranging from cosmetic manipulation of the title or on-screen content to, on some terminal emulators, command execution. This extends the same class of issue as CVE-2026-45803—which addressed only gh run view --log—to the other affected command paths. This issue is fixed in version 2.97.0.
osv:CVE-2026-64654
Complete source record
{
"id": "d8a7c92cda9bae7f998b868baef5bae78ed54451eaea7fcb48c08d07364b661a",
"url": "https://osv.dev/vulnerability/CVE-2026-64654",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "GitHub CLI: Terminal escape sequence injection in multiple `gh` commands",
"summary": "GitHub CLI (gh) is GitHub's official command line tool. Prior to version 2.97.0, multiple GitHub CLI commands printed externally controlled gist, API, pull request, release, codespace, skill, or agent-task content without neutralizing terminal escape sequences. An attacker who can influence that content can embed escape sequences that are interpreted by the terminal of a user who runs an affected command, with impact ranging from cosmetic manipulation of the title or on-screen content to, on some terminal emulators, command execution. This extends the same class of issue as CVE-2026-45803—which addressed only gh run view --log—to the other affected command paths. This issue is fixed in version 2.97.0.",
"evidence": "osv:CVE-2026-64654",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-64654",
"aliases": [
"CVE-2026-64654",
"GHSA-3m3g-3wcr-px46"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/cli/cli",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "55dbb4dc6b7edb10b48e3d7fc5bccd32318d1b55"
},
{
"fixed": "2a1409fe88d416cc85fc96fb5bc473f83ed5a054"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2.97.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "2a1409fe88d416cc85fc96fb5bc473f83ed5a054"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "55dbb4dc6b7edb10b48e3d7fc5bccd32318d1b55"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v2.97.0"
}
]
}
}
],
"versions": [
"v2.96.0",
"v2.95.0",
"v2.94.0",
"v2.93.0",
"v2.92.0",
"v2.91.0",
"v2.90.0",
"v2.89.0",
"v2.88.1",
"v2.88.0",
"v2.87.3",
"v2.87.2",
"v2.87.1",
"v2.87.0",
"v2.85.0",
"v2.86.0",
"v2.83.2",
"v2.83.1",
"v2.83.0",
"v2.82.1",
"v2.82.0",
"v2.81.0",
"v2.80.0",
"v2.79.0",
"v2.78.0",
"v2.77.0",
"v2.76.2",
"v2.76.1",
"v2.76.0",
"v2.75.1",
"v2.75.0",
"v2.74.2",
"v2.74.1",
"v2.74.0",
"v2.73.0",
"v2.72.0",
"v2.71.2",
"v2.71.1",
"v2.71.0",
"v2.70.0",
"v2.69.0",
"v2.68.1",
"v2.68.0",
"v2.67.0",
"v2.66.1",
"v2.66.0",
"v2.65.0",
"v2.64.0",
"v2.63.2",
"v2.63.1",
"v2.63.0",
"v2.62.0",
"v2.61.0",
"v2.60.1",
"v2.60.0",
"v2.59.0",
"v2.58.0",
"v2.57.0",
"v2.56.0",
"v2.55.0",
"v2.54.0",
"v2.53.0",
"v2.52.0",
"v2.51.0",
"v2.50.0",
"v2.49.2",
"v2.49.1",
"v2.49.0",
"v2.48.0",
"v2.47.0",
"v2.46.0",
"v2.45.0",
"v2.44.1",
"v2.44.0",
"v2.43.1",
"v2.43.0",
"v2.42.1",
"v2.42.0",
"v2.41.0",
"v2.40.1",
"v2.40.0",
"v2.39.2",
"v2.39.1",
"v2.39.0",
"v2.38.0",
"v2.37.0",
"v2.36.0",
"v2.35.0",
"v2.34.0",
"v2.33.0",
"v2.32.1",
"v2.32.0",
"v2.31.0",
"v2.30.0",
"v2.27.0",
"v2.26.1",
"v2.26.0",
"v2.25.1",
"v2.25.0",
"v2.24.3",
"v2.24.2",
"v2.24.1",
"v2.24.0",
"v2.23.0",
"v2.22.1",
"v2.22.0",
"v2.21.2",
"v2.21.1",
"v2.21.0",
"v2.20.2",
"v2.20.1",
"v2.20.0",
"v2.19.0",
"v2.18.1",
"v2.18.0",
"v2.17.0",
"v2.16.1",
"v2.16.0",
"v2.15.0",
"v2.14.7",
"v2.14.6",
"v2.14.5",
"v2.14.4",
"v2.14.3",
"v2.14.2",
"v2.14.1",
"v2.14.0",
"v2.13.0",
"v2.12.1",
"v2.12.0",
"v2.11.3",
"v2.11.2",
"v2.11.1",
"v2.11.0",
"v2.10.1",
"v2.10.0",
"v2.9.0",
"v2.8.0",
"v2.7.0",
"v2.6.0",
"v2.5.2",
"v2.4.0",
"v2.5.1",
"v2.5.0",
"v2.3.0",
"v2.2.0",
"v2.1.0",
"v2.0.0",
"v1.14.0",
"v1.12.1",
"v1.13.0",
"v1.12.0",
"v1.11.0",
"v1.10.3",
"v1.10.2",
"v1.10.1",
"v1.10.0",
"v1.9.2",
"v1.9.1",
"v1.9.0",
"v1.8.1",
"v1.8.0",
"v1.7.0",
"v1.6.1",
"v1.6.2",
"v1.6.0",
"v1.5.0",
"v1.4.0",
"v1.3.0",
"v1.2.1",
"v1.2.0",
"v1.1.0",
"v1.0.0",
"v0.12.0",
"v0.11.1",
"v0.11.0",
"v0.10.1",
"v0.10.0",
"v0.9.0",
"v0.8.0",
"v0.7.0",
"v0.6.4",
"v0.6.3",
"v0.6.2",
"v0.6.1",
"v0.6.0",
"v0.5.7",
"v0.5.6",
"v0.5.5",
"v0.5.4",
"v0.5.3",
"v0.5.2",
"v0.5.1",
"v0.5.0",
"v0.4.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64654.json"
}
}
],
"modified": "2026-10-28T02:30:29.347415310Z",
"provider": "osv",
"references": [
"https://github.com/cli/cli/releases/tag/v2.97.0",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64654.json",
"https://github.com/cli/cli/security/advisories/GHSA-3m3g-3wcr-px46",
"https://nvd.nist.gov/vuln/detail/CVE-2026-64654",
"https://github.com/cli/cli/commit/2a1409fe88d416cc85fc96fb5bc473f83ed5a054"
],
"provider_metadata": {
"cwe_ids": [
"CWE-150"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64654.json"
}
},
"related_cves": [
{
"value": "CVE-2026-64654",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 496248,
"published_at": "2026-08-06T18:27:38.491+00:00"
}