# CVE-2022-39304: ghinstallation returns app JWT in error responses

- Severity: Medium 5.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 21% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-12-19T22:48:32.000Z
- Modified: 2026-06-17T04:58:06.453Z
- Also known as: GHSA-h4q8-96p6-jcgr, GO-2022-1178
- Weaknesses: CWE-209
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- bradleyfalzon ghinstallation: < 2.0.0
- github.com/bradleyfalzon/ghinstallation (Go): before 2.0.0; before 1.1.2-0.20210308182858-d24f14f8be70
- ghinstallation_project ghinstallation: before 2.0.0

## Every score

- GitHub_M: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:L`
- GitHub: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:L`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/bradleyfalzon/ghinstallation/blob/24e56b3fb7669f209134a01eff731d7e2ef72a5c/transport.go#L172-L174> (exploit, third-party-advisory, web)
- <https://github.com/bradleyfalzon/ghinstallation/security/advisories/GHSA-h4q8-96p6-jcgr> (advisory, patch, third-party-advisory, web)
- <https://github.com/bradleyfalzon/ghinstallation/commit/d24f14f8be70d94129d76026e8b0f4f9170c8c3e> (fix, patch, third-party-advisory, web)
- <https://docs.github.com/en/developers/apps/building-github-apps/authenticating-with-github-apps#authenticating-as-an-installation> (technical-description, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-39304> (advisory)
- <https://github.com/bradleyfalzon/ghinstallation> (package)
- <https://pkg.go.dev/vuln/GO-2022-1178> (web)
- <https://securitylab.github.com/advisories/GHSL-2022-061_ghinstallation> (advisory)

## Sources

- CVE List: [CVE-2022-39304](https://www.cve.org/CVERecord?id=CVE-2022-39304), CVE Terms of Use, modified 2025-04-16
- GitHub Advisory Database: [GHSA-h4q8-96p6-jcgr](https://github.com/advisories/GHSA-h4q8-96p6-jcgr), CC-BY-4.0, modified 2023-11-08
- Go Vulnerability Database: [GO-2022-1178](https://pkg.go.dev/vuln/GO-2022-1178), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2022-39304](https://nvd.nist.gov/vuln/detail/CVE-2022-39304), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-39304 · Whole record: https://cve.day/CVE-2022-39304.json · Rebuilt by cve.day 2026-11-25T22:58:17.716Z
