GHSA-55v3-xh23-96gh · Severity: medium · Ecosystem: go — `auth.TokenForHost` violates GitHub host security boundary when sourcing authentication token within a codespace
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.
Conclusion & alert: CVE-2024-53859 is rated Moderate Risk (40.5/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.52%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.06% | 0.52% | +0.47% |
| 2 | 2026-04-18 | 0.04% | 0.06% | +0.01% |
| 3 | 2026-01-05 | — | 0.04% | — |
Full EPSS history (9 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 6.5 | 3.1 | MEDIUM |
|
1.0 | 5.5 | [email protected] |
| 7.5 | 3.1 | HIGH |
|
3.9 | 3.6 | [email protected] |
GHSA-55v3-xh23-96gh · Severity: medium · Ecosystem: go — `auth.TokenForHost` violates GitHub host security boundary when sourcing authentication token within a codespace
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2024-53859 not yet assigned priority: Debian including 1 source packages (golang-github-cli-go-gh-v2), 3 status rows across 3 suites (forky, sid, trixie): open 3. | https://security-tracker.debian.org/tracker/CVE-2024-53859 |
ubuntu
|
medium | CVE-2024-53859 medium priority: Ubuntu including 1 source packages (golang-github-cli-go-gh-v2), 7 status rows across 7 suites (focal, jammy, noble, oracular, plucky, questing, upstream): DNE 2, needs-triage 2, released 2, ignored 1. | https://ubuntu.com/security/CVE-2024-53859 |