Skip to content
OpenAdvisories
Medium · 5.0 CVE-2022-39304 EUVD-2022-7643GHSA-h4q8-96p6-jcgrGO-2022-1178

ghinstallation returns app JWT in error responses

Published Dec 20, 2022 · Updated Apr 16, 2025 · Assigned by GitHub_M

Description

ghinstallation provides transport, which implements http.RoundTripper to provide authentication as an installation for GitHub Apps. In ghinstallation version 1, when the request to refresh an installation token failed, the HTTP request and response would be returned for debugging. The request contained the bearer JWT for the App, and was returned back to clients. This token is short lived (10 minute maximum). This issue has been patched and is available in version 2.0.0.

Affected products

VendorProductAffectedFixed
bradleyfalzon ghinstallation < 2.0.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/bradleyfalzon/ghinstallation < 2.0.0 2.0.0 GHSA-h4q8-96p6-jcgr
Go github.com/bradleyfalzon/ghinstallation < 1.1.2-0.20210308182858-d24f14f8be70 1.1.2-0.20210308182858-d24f14f8be70 GO-2022-1178

References