CVE-2022-39304
MEDIUM 4.7CVSS 3.1ghinstallation returns app JWT in error responses
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.
- Published
- 20 Dec 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-209
- Also known as
- GHSA-h4q8-96p6-jcgrGO-2022-1178
- Sources
- NVDJSONOSV GHSA-h4q8-96p6-jcgrJSONOSV GO-2022-1178JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ghinstallation_project | ghinstallationcpe:2.3:a:ghinstallation_project:ghinstallation:*:*:*:*:*:*:*:* |
< 2.0.0 | 2.0.0 |
| OSV | Go | github.com/bradleyfalzon/ghinstallation | < 2.0.0 | 2.0.0 |
| OSV | Go | github.com/bradleyfalzon/ghinstallation | < 1.1.2-0.20210308182858-d24f14f8be70 | 1.1.2-0.20210308182858-d24f14f8be70 |
References
- 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://github.com/bradleyfalzon/ghinstallation/blob/24e56b3fb7669f209134a01eff731d7e2ef72a5c/transport.go#L172-L174 · Exploit, Third Party Advisory, WEB
- https://github.com/bradleyfalzon/ghinstallation/commit/d24f14f8be70d94129d76026e8b0f4f9170c8c3e · Patch, Third Party Advisory, WEB, FIX
- https://github.com/bradleyfalzon/ghinstallation/security/advisories/GHSA-h4q8-96p6-jcgr · Patch, Third Party Advisory, WEB, ADVISORY
- 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
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 20 Dec 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 Dec 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 19 Dec 2022)