Loading advisory.
Loading advisory.
`auth.TokenForHost` violates GitHub host security boundary when sourcing authentication token within a codespace
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.
Published 2024-11-27 21:25 UTC · Modified 2026-09-10 03:50 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| github.com/cli/go-gh/v2 | Go | < 2.11.1 | 2.11.1 | go get github.com/cli/go-gh/v2@v2.11.1 |
| github.com/cli/go-gh | Go | all versions | No patch yet | No command until a fix exists. |
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:
GITHUB_TOKEN, GH_TOKEN for GitHub.com and ghe.com
GITHUB_ENTERPRISE_TOKEN, GH_ENTERPRISE_TOKEN for GitHub Enterprise Server
Prior to 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 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.
Upgrade go-gh to 2.11.1
Advise extension users to regenerate authentication tokens:
Advise extension users to review their personal security log and any relevant audit logs for actions associated with their account or enterprise
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.005 on 2026-11-24 to 0.008 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.005 | first score | v2026.06.15 |
| 2026-11-26 | 0.008 | 0.005 | v2026.06.15 |