Approved changes feed: RSS · Atom

cpe:2.3:a:cli:go-gh:*:*:*:*:*:*:*:*

part: a version: * update: *

VendorCli (55ed5e98-f56b-5586-860a-7622e6b7be15)
ProductGo Gh (4fd1f4a6-4fb0-53d6-a7af-5882da4ec884)
Edition*
Language*
Software edition*
Target software*
Target hardware*
Other*
NotesImported from purl2cpe mapping

PURL mappings

PURLSourceLast updated
pkg:github/cli/go-gh purl2cpe 2026-06-01 10:15:01.513695
pkg:golang/github.com/cli/go-gh purl2cpe 2026-06-01 10:15:01.513697

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2025-48938 vulnerable 2026-06-08 07:29:12.273009 Prevent GitHub CLI and extensions from executing arbitrary commands from compromised GitHub Enterprise Server
go-gh is a collection of Go modules to make authoring GitHub CLI extensions easier. A security vulnerability has been identified in versions prior to 2.12.1 where an attacker-controlled GitHub Enterprise Server could result in executing arbitrary commands on a user's machine by replacing HTTP URLs provided by GitHub with local file paths for browsing. In `2.12.1`, `Browser.Browse()` has been enhanced to allow and disallow a variety of scenarios to avoid opening or executing files on the filesystem without unduly impacting HTTP URLs. No known workarounds are available other than upgrading.
Published: 2025-05-30T18:45:59.753Z
Updated: 2025-05-30T20:38:51.984Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2024-53859 vulnerable 2026-06-08 06:54:15.639240 go-gh `auth.TokenForHost` violates GitHub host security boundary within a codespace
MEDIUM (6.5)
go-gh is a Go module for interacting with the `gh` utility and the GitHub API from the command line. A security vulnerability has been identified in `go-gh` that could leak authentication tokens intended for GitHub hosts to non-GitHub hosts when within a codespace. `go-gh` sources authentication tokens from different environment variables depending on the host involved: 1. `GITHUB_TOKEN`, `GH_TOKEN` for GitHub.com and ghe.com and 2. `GITHUB_ENTERPRISE_TOKEN`, `GH_ENTERPRISE_TOKEN` for GitHub Enterprise Server. Prior to version `2.11.1`, `auth.TokenForHost` could source a token from the `GITHUB_TOKEN` environment variable for a host other than GitHub.com or ghe.com when within a codespace. In version `2.11.1`, `auth.TokenForHost` will only source a token from the `GITHUB_TOKEN` environment variable for GitHub.com or ghe.com hosts. Successful exploitation could send authentication token to an unintended host. This issue has been addressed in version 2.11.1 and all users are advised to upgrade. Users are also advised to regenerate authentication tokens and to review their personal security log and any relevant audit logs for actions associated with their account or enterprise.
Published: 2024-11-27T21:25:12.391Z
Updated: 2024-12-03T16:15:49.930Z
Reference links
Imported from gcve-enriched-dumps CVE data

Contribute

You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.