---
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: low
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
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-64653'
  - url: 'https://github.com/advisories/GHSA-4fjg-2h4q-fwg3'
  - url: 'https://github.com/cli/cli'
tags:
  - nvd
  - ghsa
  - go
  - osv
epss: 0.00511
epssPercentile: 0.43397
ingestedAt: '2026-09-10T21:05:53.594Z'
aliases:
  - GHSA-4fjg-2h4q-fwg3
  - GO-2026-6765
ecosystem: go
vendor: cli
product: github.com/cli/cli/v2
affected:
  - github.com/cli/cli/v2 < 2.97.0
patched:
  - github.com/cli/cli/v2 2.97.0
---

## 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.

## Package advisory (CVE-2026-64653)

Affected packages:

- `github.com/cli/cli/v2 < 2.97.0`

Patched in:

- `github.com/cli/cli/v2 2.97.0`

Source: https://github.com/advisories/GHSA-4fjg-2h4q-fwg3
