{"cve":"CVE-2022-39304","nvd":{"published":"2022-12-20T20:15:10.043","modified":"2026-06-17T04:58:06.453","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","score":4.7},"cwes":["CWE-209"],"references":["https://docs.github.com/en/developers/apps/building-github-apps/authenticating-with-github-apps#authenticating-as-an-installation","https://github.com/bradleyfalzon/ghinstallation/blob/24e56b3fb7669f209134a01eff731d7e2ef72a5c/transport.go#L172-L174","https://github.com/bradleyfalzon/ghinstallation/commit/d24f14f8be70d94129d76026e8b0f4f9170c8c3e","https://github.com/bradleyfalzon/ghinstallation/security/advisories/GHSA-h4q8-96p6-jcgr","https://docs.github.com/en/developers/apps/building-github-apps/authenticating-with-github-apps#authenticating-as-an-installation"],"products":["ghinstallation_project:ghinstallation"],"source":"nvd","synced_at":"2026-10-19T21:37:31.370122805+00:00"},"epss":{"cve":"CVE-2022-39304","score":0.00393,"percentile":0.33487,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-h4q8-96p6-jcgr","url":"https://osv.dev/vulnerability/GHSA-h4q8-96p6-jcgr","summary":"ghinstallation returns app JWT in error responses","modified":"2023-11-08T04:10:18.331336Z","packages":[{"ecosystem":"Go","name":"github.com/bradleyfalzon/ghinstallation","purl":"pkg:golang/github.com/bradleyfalzon/ghinstallation","ranges":["<2.0.0"],"fixed":["2.0.0"]}]},{"id":"GO-2022-1178","url":"https://osv.dev/vulnerability/GO-2022-1178","summary":"JWT leak in github.com/bradleyfalzon/ghinstallation","modified":"2024-05-20T16:03:47Z","packages":[{"ecosystem":"Go","name":"github.com/bradleyfalzon/ghinstallation","purl":"pkg:golang/github.com/bradleyfalzon/ghinstallation","ranges":["<1.1.2-0.20210308182858-d24f14f8be70"],"fixed":["1.1.2-0.20210308182858-d24f14f8be70"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}