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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-06 · Modified: 2026-08-07
- Aliases: UBUNTU-CVE-2026-64653, DEBIAN-CVE-2026-64653, GHSA-4fjg-2h4q-fwg3, GO-2026-6765
- Record: https://cvemate.com/vulnerability/CVE-2026-64653 · JSON: https://cvemate.com/vulnerability/CVE-2026-64653/json

## Description

```text
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.
```

## Signals

- CVSS: 5.1 medium (v4.0, CVE.org) 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
- EPSS: 0.511%, percentile 45.131%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- cli cli: \< 2.97.0
- debian gh (Debian): All versions (No fix recorded)
- ubuntu gh (Ubuntu): All versions (No fix recorded)
- github.com/cli cli (Go): All versions (No fix recorded)
- github.com/cli/cli v2 (Go): \< 2.97.0

## 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>
- <https://ubuntu.com/security/CVE-2026-64653>
- <https://www.cve.org/CVERecord?id=CVE-2026-64653>
- <https://security-tracker.debian.org/tracker/CVE-2026-64653>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-64653>
- <https://github.com/cli/cli>

---

Data as of 2026-12-05T08:24:03.343Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
