Authorization Flaw in github.com/cli/cli/v2
Summary
Vulnerability in github.com/cli/cli/v2 (CVE-2026-48501). Confidential information can be exposed externally. Exploitable via Authorization header. Mitigation: upgrade to 2.93.0 or later.
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
A vulnerability tracked as CVE-2026-48501 has been found in github.com/cli/cli/v2.
Attackers can target a specific entry point like Authorization header over the network to misuse the product.
Confidential information can be exposed externally. CVSS score: 7.4/10.
What to do: upgrade github.com/cli/cli/v2 to 2.93.0 or later.
If unsure, ask your IT team or search "github.com/cli/cli/v2 CVE-2026-48501" on the vendor's site.
CVE-2026-48501 (github.com/cli/cli/v2) — CWE-863 / CVSS v3 7.4
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Attack surface: Authorization header / github.com / GH_ENTERPRISE_TOKEN / GITHUB_ENTERPRISE_TOKEN
Patched: 2.93.0 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
Incorrect authorization (CWE-863) exists in github.com/cli/cli/v2. Attackers reach the vulnerable code path via Authorization header without authentication.
Check the vendor advisory for the affected versions of github.com/cli/cli/v2. Attack surface: Authorization header / github.com / GH_ENTERPRISE_TOKEN / GITHUB_ENTERPRISE_TOKEN.
Severity: High (CVSS 7.4/10). Confidential information can be exposed externally.
Update to 2.93.0.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'github.com/cli/cli/v2' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'github.com/cli/cli/v2' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/cli/cli/v2を grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade github.com/cli/cli/v2 to 2.93.0ステージング環境で 2.93.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| gogithub.com/cli/cli/v2 |
< 2.93.0→ 2.93.0 |
2.93.0 |
| Gogithub.com/cli/cli |
All versions→ Not listed |
Not listed |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-48501 golang-github-cli-go-gh-v2, golang-github-cli-go-gh, gh No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-48501 golang-github-cli-go-gh-v2, golang-github-cli-go-gh No fixed version in this record
Original description The description as published by the source.
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.
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- web github.com
- web github.com