{"id":"CVE-2022-39304","aliases":["GHSA-h4q8-96p6-jcgr","GO-2022-1178"],"url":"https://o3.security/vulnerability/CVE-2022-39304","summary":"ghinstallation returns app JWT in error responses","details":"### Impact\n\nIn ghinstallation v1, when the request to refresh an installation token failed, the HTTP request and response would be returned for debugging.\n\nhttps://github.com/bradleyfalzon/ghinstallation/blob/24e56b3fb7669f209134a01eff731d7e2ef72a5c/transport.go#L172-L174\n\nThe request contained the bearer JWT for the App, and was returned back to clients. This token is short lived (10 minute maximum).\n\n### Patches\n\n- This has already been patched in d24f14f8be70d94129d76026e8b0f4f9170c8c3e, and is available in releases >= v2.0.0.\n\n### References\n_Are there any links users can visit to find out more?_\n\n- See https://docs.github.com/en/developers/apps/building-github-apps/authenticating-with-github-apps#authenticating-as-an-installation for the App installation flow.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [ghinstallation](https://github.com/bradleyfalzon/ghinstallation)\n","published":"2022-12-20T19:52:28.024Z","modified":"2026-08-12T03:51:19.629430211Z","cvss":{"score":5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"Go","name":"github.com/bradleyfalzon/ghinstallation","fixedVersion":"2.0.0"}],"fix":{"url":"https://github.com/bradleyfalzon/ghinstallation/commit/d24f14f8be70d94129d76026e8b0f4f9170c8c3e","label":"bradleyfalzon/ghinstallation@d24f14f"},"references":[{"type":"WEB","url":"https://docs.github.com/en/developers/apps/building-github-apps/authenticating-with-github-apps#authenticating-as-an-installation"},{"type":"WEB","url":"https://github.com/bradleyfalzon/ghinstallation/blob/24e56b3fb7669f209134a01eff731d7e2ef72a5c/transport.go#L172-L174"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39304.json"},{"type":"ADVISORY","url":"https://github.com/bradleyfalzon/ghinstallation/security/advisories/GHSA-h4q8-96p6-jcgr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39304"},{"type":"FIX","url":"https://github.com/bradleyfalzon/ghinstallation/commit/d24f14f8be70d94129d76026e8b0f4f9170c8c3e"},{"type":"PACKAGE","url":"https://github.com/bradleyfalzon/ghinstallation"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2022-1178"},{"type":"ADVISORY","url":"https://securitylab.github.com/advisories/GHSL-2022-061_ghinstallation"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:19.629430211Z"}}