# CVE-2026-48501: GitHub CLI tokens leak via \`gh attestation\` commands

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.4
- **CVSS:** 7.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.45% (percentile 31, 2026-11-26)
- **CWE:** CWE-863
- **Aliases:** GHSA-8xvp-7hj6-mcj9, GO-2026-5271
- **Published:** 2026-05-29T15:14:54.975Z
- **Modified:** 2026-07-21T15:10:00.103Z

## Who should check

- Projects that depend on Go package github.com/cli/cli/v2 (\< 2.93.0)
- Projects that depend on Go package github.com/cli/cli
- Anyone running cli \< 2.93.0

## Description

GitHub CLI (gh) is GitHub’s official command line tool. Prior to 2.93.0, GitHub CLI incorrectly includes authorization header in API requests to TUF repository mirrors via gh attestation, gh release verify, and gh release verify-asset commands. The CLI uses a shared HTTP client with an authentication layer that automatically attaches tokens to outgoing requests. This layer lacks accurate host detection and can incorrectly attribute the target host, providing it with a token it should never receive. Specifically, the host normalization logic collapses any \*.github.com subdomain to github.com, so a request to tuf-repo.github.com (a GitHub Pages site, not a GitHub API endpoint) is treated as a request to github.com and receives the user's github.com token. For hosts that don't match github.com or a known GHES instance at all, the resolver falls back to GH\_ENTERPRISE\_TOKEN if set. The gh attestation, gh release verify and gh release verify-asset commands fetch data from several external hosts as part of their normal operation (TUF metadata from tuf-repo.github.com and tuf-repo-cdn.sigstore.dev, artifact bundles from Azure Blob Storage). Because these requests go through the same authenticated HTTP client, the token is sent to all of them. This vulnerability is fixed in 2.93.0.

## Affected and fixed versions

- Go `github.com/cli/cli/v2`: affected \< 2.93.0; fixed 2.93.0 (osv)
- Go `github.com/cli/cli`: affected see advisory; fixed no fix listed yet (osv)
- cli: \< 2.93.0 (cvelist)

## Mitigation

- Upgrade github.com/cli/cli/v2 to 2.93.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-48501. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-48501.md
Affected: github.com/cli/cli/v2 < 2.93.0; github.com/cli/cli
Fixed in: 2.93.0

Steps:
1. Search this machine and project for github.com/cli/cli/v2 (Go), github.com/cli/cli (Go), cli: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-48501 being exploited?

There is no confirmed exploitation: CVE-2026-48501 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.45% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-48501?

High: CVSS 7.4 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-48501?

github.com/cli/cli/v2 \< 2.93.0; github.com/cli/cli.

### Is there a fix for CVE-2026-48501?

Yes. Fixed in 2.93.0. Upgrade github.com/cli/cli/v2 to 2.93.0 or later.

### How do I check if I'm affected by CVE-2026-48501?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/cli/cli/security/advisories/GHSA-8xvp-7hj6-mcj9>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-48501>
- other: <https://github.com/cli/cli>
- other: <https://github.com/cli/cli/releases/tag/v2.93.0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-48501>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-8xvp-7hj6-mcj9> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-5271> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-48501> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-48501>
