CVE-2022-39304

ghinstallation returns app JWT in error responses

Published Dec 20, 2022 CVSS 3.1 · 5 Medium EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-7643 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.
Github GHSA Github GHSA GHSA-h4q8-96p6-jcgr ghinstallation returns app JWT in error responses
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 16, 2025, 2:47 PM
Reserved
Sep 2, 2022, 2:16 PM
Status
Modified
Published
Dec 20, 2022, 8:15 PM
Modified
Jun 17, 2026, 4:58 AM
Severity
Moderate
Public date
Jul 21, 2022, 12:00 AM