Vulnerability · Published Aug 6, 2026 · Assigned by GitHub_M

CVE-2026-64653GitHub CLI: Unescaped variable components in request URLs could allow path traversal

Medium 5.1

In plain English

A medium-severity path traversal in cli from cli. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)5.1Medium
Exploit odds (30 days)0.5%top 56.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ghno fix listedDEBIAN-CVE-2026-64653
Debian:13ghno fix listedDEBIAN-CVE-2026-64653
Gogithub.com/cli/clino fix listedGO-2026-6765
Gogithub.com/cli/cli/v22.97.0GO-2026-6765
Gogithub.com/cli/cli/v22.97.0GHSA-4fjg-2h4q-fwg3
Ubuntu:22.04:LTSghno fix listedUBUNTU-CVE-2026-64653
Ubuntu:26.10ghno fix listedUBUNTU-CVE-2026-64653

Affected products (as reported)

VendorProductVersions
cli cli < 2.97.0

Weakness: CWE-22 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

References