Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-48501

HIGH 7.4EPSS 31%

GitHub CLI tokens leak via `gh attestation` commands

Also known as GHSA-8xvp-7hj6-mcj9, GO-2026-5271

Mitigation

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

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

Vulnerability facts

Affected
github.com/cli/cli/v2 < 2.93.0; github.com/cli/cli
Fixed in
2.93.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.4 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 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
EPSS
0.45% chance of exploitation in 30 days (percentile 31, 2026-11-26)
CWE
CWE-863
Published
Modified

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

Package / productAffectedFixedSource
Go github.com/cli/cli/v2< 2.93.02.93.0osv
Go github.com/cli/cli——osv
cli< 2.93.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors