ghinstallation returns app JWT in error responses
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · Low
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-209.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| bradleyfalzon | ghinstallation | before 2.0.0 | 2.0.0 | Patch available | CNA |
| — | github.com/bradleyfalzon/ghinstallation (Go) | before 2.0.0 | 2.0.0 | Patch available | GHSA-h4q8-96p6-jcgr |
- ghinstallation Vendorbradleyfalzon Affected before 2.0.0 Fixed in 2.0.0 Patch available CNA
- github.com/bradleyfalzon/ghinstallation (Go) Vendor— Affected before 2.0.0 Fixed in 2.0.0 Patch available GHSA-h4q8-96p6-jcgr
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:ghinstallation_project:ghinstallation:*:*:*:*:*:*:*:* | before 2.0.0 | Vulnerable | Ghinstallation Project |
- cpe:2.3:a:ghinstallation_project:ghinstallation:*:*:*:*:*:*:*:* Versions before 2.0.0 Vulnerable ·Ghinstallation Project
Remediation
- Fix · CNA ghinstallation (bradleyfalzon) Fixed in 2.0.0
- Fix · GHSA-h4q8-96p6-jcgr github.com/bradleyfalzon/ghinstallation (Go) Fixed in 2.0.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift GitOps | Affected | No fix yet |
Not affected: 3 products
- Red Hat Advanced Cluster Management for Kubernetes 2
- Red Hat Advanced Cluster Security 3
- Red Hat OpenShift GitOps
Timeline
- 2026-10-02 Threatist record created from CVE-2022-39304
- 2026-10-03 Alias added: GHSA-h4q8-96p6-jcgr
References
Patch 2
Advisory 3
Sources
- CVE-2022-39304 · CVE Program
- CVE-2022-39304 · NVD
- FIRST EPSS
- GHSA-h4q8-96p6-jcgr · GitHub Advisory Database · CC BY 4.0
- CVE-2022-39304 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences