Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/bradleyfalzon/ghinstallation
  4. ›
  5. GMS-2022-8554

GMS-2022-8554: ghinstallation returns app JWT in error responses

December 19, 2022

In ghinstallation v1, 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 has been patched in d24f14f8be70d94129d76026e8b0f4f9170c8c3e, and is available in releases >= v2.0.0.

References

  • github.com/advisories/GHSA-h4q8-96p6-jcgr
  • github.com/bradleyfalzon/ghinstallation/blob/24e56b3fb7669f209134a01eff731d7e2ef72a5c/transport.go
  • github.com/bradleyfalzon/ghinstallation/commit/d24f14f8be70d94129d76026e8b0f4f9170c8c3e
  • github.com/bradleyfalzon/ghinstallation/security/advisories/GHSA-h4q8-96p6-jcgr

Code Behaviors & Features

Detect and mitigate GMS-2022-8554 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.0

Fixed versions

  • v2.0.0

Solution

Upgrade to version 2.0.0 or above.

Source file

go/github.com/bradleyfalzon/ghinstallation/GMS-2022-8554.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:24 +0000.