Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| cli | go-gh | < 2.12.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | golang-github-cli-go-gh-v2 | No fix yet | — |
| Debian 13 | golang-github-cli-go-gh +1 | No fix yet | — |
| Debian 12 | golang-github-cli-go-gh | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | golang-github-cli-go-gh +1 | No fix yet | — |
| Ubuntu 26.04 LTS | golang-github-cli-go-gh +1 | No fix yet | — |
| Ubuntu 25.10 | golang-github-cli-go-gh +1 | No fix yet | — |
| Ubuntu 24.04 LTS | golang-github-cli-go-gh | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | golang-github-cli-go-gh-v2 | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | govulncheck-vulndb | 0.0.20250612T141001-1.1 | openSUSE-SU-2025:15225-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | gh | 2.62.0-9 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | wolfictl | 0.37.2-r1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/cli/go-gh/v2 | < 2.12.1 | 2.12.1 | GHSA-g9f5-x53j-h563 |
Advisories 1
- openSUSE-SU-2025:15225-1 govulncheck-vulndb-0.0.20250612T141001-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026