Advisory record · GHSA-55v3-xh23-96gh

`auth.TokenForHost` violates GitHub host security boundary when sourcing authentication token within a codespace

CVSS 6.5 MediumEPSS 0.0055 · 46th percentile

Published by the GitHub Advisory Database at 27 Nov 2024, 21:43 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
github.com/cli/go-gh/v2Go<2.11.12.11.1
github.com/cli/go-ghGoall versionsNo fixed version yet
Identifiers
GHSA-55v3-xh23-96gh · CVE-2024-53859 · GO-2024-3295
Weakness (CWE)
CWE-200
Published
27 Nov 2024
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The Go package github.com/cli/go-gh/v2 is affected in versions before 2.11.1. Inside a codespace, auth.TokenForHost could return the GITHUB_TOKEN value for hosts other than GitHub.com or ghe.com, so a token could be sent to an unintended host. Upgrade to 2.11.1 or later. Also, the Go package github.com/cli/go-gh has no fixed version listed.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.5 Medium 3.1 CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0055, the 46th percentile, on 18 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:15 UTC First seen by agentprime
  2. 31 Oct 2026, 14:15 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.