Skip to main content
← All vulnerabilities
CVE-2022-39304GHSA-H4Q8-96P6-JCGRGO-2022-1178

ghinstallation returns app JWT in error responses

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0.0, 1.1.2-0.20210308182858-d24f14f8be70
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • bradleyfalzon ghinstallation

    fixed in 2.0.0

  • github.com/bradleyfalzon/ghinstallationGo

    fixed in 2.0.0

  • github.com/bradleyfalzon/ghinstallationGo

    fixed in 1.1.2-0.20210308182858-d24f14f8be70

References 4

GitHub · bradleyfalzon/ghinstallation

docs.github.com