Security mailing lists by PureSourceCode

CVE-2022-39304

MEDIUM 4.7CVSS 3.1

ghinstallation 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD ghinstallation_project ghinstallation
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.