{"id":"CVE-2022-39304","published":"2022-12-20T19:52:28Z","modified":"2025-04-16T14:47:35Z","title":"ghinstallation returns app JWT in error responses","vendor":"bradleyfalzon","product":"ghinstallation","tier":"tail","description":{"text":"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.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00393,"percentile":0.34349,"provenance":"source"},"cwes":[{"id":"CWE-209","name":"Generation of Error Message Containing Sensitive Information"}],"references":[{"url":"https://github.com/bradleyfalzon/ghinstallation/security/advisories/GHSA-h4q8-96p6-jcgr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/bradleyfalzon/ghinstallation/commit/d24f14f8be70d94129d76026e8b0f4f9170c8c3e","tags":["x_refsource_MISC"]},{"url":"https://docs.github.com/en/developers/apps/building-github-apps/authenticating-with-github-apps#authenticating-as-an-installation","tags":["x_refsource_MISC"]},{"url":"https://github.com/bradleyfalzon/ghinstallation/blob/24e56b3fb7669f209134a01eff731d7e2ef72a5c/transport.go#L172-L174","tags":["x_refsource_MISC"]}],"priority":{"score":10.4,"factors":[{"name":"EPSS percentile","points":6.87},{"name":"CVSS severity","points":3.5}]},"vendorSlug":"bradleyfalzon","affectedVersions":[{"vendor":"bradleyfalzon","product":"ghinstallation","versions":["< 2.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-16T14:46:54.959551Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/bradleyfalzon/ghinstallation","vulnerableRanges":["<2.0.0","<1.1.2-0.20210308182858-d24f14f8be70"],"patched":["2.0.0","1.1.2-0.20210308182858-d24f14f8be70"],"from":["GHSA-h4q8-96p6-jcgr","GO-2022-1178"],"provenance":"source"}],"summary":{"text":"The ghinstallation library's transport component, which provides authentication as a GitHub App installation, leaks the App's bearer JWT in error responses when a token refresh request fails. An attacker with local access who can trigger that failure and read the returned error output, with the victim's involvement needed in the form of a user interaction, could obtain a short-lived App JWT (valid for up to 10 minutes), and the requirements include a high-complexity condition and low privileges on the system.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:36Z"},"euvd":{"id":"EUVD-2022-7643","exploited":false,"provenance":"source"}}