{"id":"CVE-2025-48938","title":"go-gh is a collection of Go modules to make authoring GitHub CLI extensions easier","summary":"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 …","severity":"critical","cvss":9.8,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-501"],"vendor":"cli","product":"go-gh","affected":["go-gh < 2.12.1"],"patched":["go-gh 2.12.1"],"published":"2025-05-30","updated":"2026-08-17","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2025-48938","references":[{"url":"https://github.com/cli/go-gh/blob/61bf393cf4aeea6d00a6251390f5f67f5b67e727/pkg/browser/browser.go","label":"security-advisories@github.com"},{"url":"https://github.com/cli/go-gh/commit/a08820a13f257d6c5b4cb86d37db559ec6d14577","label":"security-advisories@github.com"},{"url":"https://github.com/cli/go-gh/security/advisories/GHSA-g9f5-x53j-h563","label":"security-advisories@github.com"}],"tags":["nvd"],"epss":0.00527,"epssPercentile":0.4362,"ingestedAt":"2026-08-17T12:53:26.213Z","slug":"CVE-2025-48938","body":"## Overview\n\ngo-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.\n\n## Affected\n\n- `go-gh < 2.12.1`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `go-gh 2.12.1`","depth":"midnight","depthScore":54,"depthScoreParts":{"impact":53.9,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}