---
id: CVE-2026-64653
title: GitHub CLI (gh) is GitHub’s official command line tool
summary: >-
  GitHub CLI (gh) is GitHub’s official command line tool. Prior to 2.97.0, some
  HTTP request URLs interpolate variable path components without percent
  encoding, allowing URL path metacharacters in attacker-controlled repository
  or resource…
severity: none
cwe:
  - CWE-22
published: '2026-08-06'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T20:36:14.340'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-64653'
references:
  - url: 'https://github.com/cli/cli/commit/0c2eea6338a2323cfff000160b9b5a56a38d2a06'
    label: security-advisories@github.com
  - url: 'https://github.com/cli/cli/releases/tag/v2.97.0'
    label: security-advisories@github.com
  - url: 'https://github.com/cli/cli/security/advisories/GHSA-4fjg-2h4q-fwg3'
    label: security-advisories@github.com
tags:
  - nvd
epss: 0.00511
epssPercentile: 0.42614
ingestedAt: '2026-09-10T21:05:53.594Z'
---

## Overview

GitHub CLI (gh) is GitHub’s official command line tool. Prior to 2.97.0, some HTTP request URLs interpolate variable path components without percent encoding, allowing URL path metacharacters in attacker-controlled repository or resource values to make gh address a different API endpoint or resource than the user intended. This issue is fixed in version 2.97.0.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
