Go Vulnerability Database
GO-2022-1178
JWT leak in github.com/bradleyfalzon/ghinstallation
Details
Errors returned by ghinstallation.Transport can include the JWT used for the failed operation. If the error is exposed to an untrusted party, this JWT could be extracted and used to authenticate further requests.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/bradleyfalzon/ghinstallation | All versions before 1.1.2-0.20210308182858-d24f14f8be70 (fixed in 1.1.2-0.20210308182858-d24f14f8be70) |
References
- https://github.com/bradleyfalzon/ghinstallation/security/advisories/GHSA-h4q8-96p6-jcgr
- https://github.com/bradleyfalzon/ghinstallation/commit/d24f14f8be70d94129d76026e8b0f4f9170c8c3e
- https://docs.github.com/en/developers/apps/building-github-apps/authenticating-with-github-apps#authenticating-as-an-installation