CVE-2024-53859: `auth.TokenForHost` violates GitHub host security boundary when sourcing authentication token within a codespace
(updated )
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.
References
- docs.github.com/en/apps/using-github-apps/reviewing-and-revoking-authorization-of-github-apps
- docs.github.com/en/authentication/keeping-your-account-and-data-secure/reviewing-your-security-log
- docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/identifying-audit-log-events-performed-by-an-access-token
- docs.github.com/en/enterprise-cloud@latest/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens
- github.com/advisories/GHSA-55v3-xh23-96gh
- github.com/cli/go-gh
- github.com/cli/go-gh/blob/71770357e0cb12867d3e3e288854c0aa09d440b7/pkg/auth/auth.go
- github.com/cli/go-gh/security/advisories/GHSA-55v3-xh23-96gh
- nvd.nist.gov/vuln/detail/CVE-2024-53859
- pkg.go.dev/vuln/GO-2024-3295
Detect and mitigate CVE-2024-53859 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →