{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-39304","id":"CVE-2022-39304","title":"ghinstallation returns app JWT in error responses","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 minu","descriptionLong":"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","published":"2022-12-20T19:52:28.024Z","updated":"2026-10-28T02:30:52.029829313Z","reserved":"2022-09-02T14:16:35.857Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:L","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:L","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:L","rating":"medium","source":"github.com"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["bradleyfalzon ghinstallation"],"affectedProducts":[{"vendor":"bradleyfalzon","product":"ghinstallation","defaultStatus":null,"versions":[{"version":"< 2.0.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/bradleyfalzon/ghinstallation","purl":"pkg:golang/github.com/bradleyfalzon/ghinstallation","ranges":["<2.0.0","<1.1.2-0.20210308182858-d24f14f8be70"],"fixed":["2.0.0","1.1.2-0.20210308182858-d24f14f8be70"],"advisory":"GHSA-h4q8-96p6-jcgr"}],"cwes":["CWE-209"],"aliases":["GHSA-h4q8-96p6-jcgr","GO-2022-1178"],"references":[{"url":"https://github.com/bradleyfalzon/ghinstallation/security/advisories/GHSA-h4q8-96p6-jcgr","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","advisory","web"]},{"url":"https://github.com/bradleyfalzon/ghinstallation/commit/d24f14f8be70d94129d76026e8b0f4f9170c8c3e","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://docs.github.com/en/developers/apps/building-github-apps/authenticating-with-github-apps#authenticating-as-an-installation","tags":["x_refsource_MISC","x_transferred","Technical Description","Third Party Advisory","web"]},{"url":"https://github.com/bradleyfalzon/ghinstallation/blob/24e56b3fb7669f209134a01eff731d7e2ef72a5c/transport.go#L172-L174","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39304.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39304","tags":["advisory"]},{"url":"https://github.com/bradleyfalzon/ghinstallation","tags":["package"]},{"url":"https://pkg.go.dev/vuln/GO-2022-1178","tags":["web"]},{"url":"https://securitylab.github.com/advisories/GHSL-2022-061_ghinstallation","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00393,"epssPercentile":0.34214,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-39304","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39304","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-39304","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-h4q8-96p6-jcgr","ok":true,"note":"GHSA-h4q8-96p6-jcgr"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-39304","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}