CVE-2026-96890: Server-Side Request Forgery vulnerability was identified in GitHub Enterprise Server that allowed requests to attacker-controlled internal hosts
A Server-Side Request Forgery (SSRF) vulnerability was identified in GitHub Enterprise Server that allowed a repository contributor to cause the appliance to issue requests to attacker-controlled internal hosts, which could be chained to achieve remote code execution on the appliance. The secret scanning validator for GCP service account credentials trusted the token endpoint embedded in a committed credential and issued a request to it without restricting the destination. Exploitation required an authenticated user with permission to push to a repository on an instance with GitHub Advanced Security and secret scanning validity checks enabled, a non-default configuration. This vulnerability affected GitHub Enterprise Server 3.20, 3.21, and 3.22 and was fixed in versions 3.20.9, 3.21.7, and 3.22.2. This vulnerability was reported through the GitHub Bug Bounty program.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
GitHub Enterprise Serverto a version that resolves this vulnerability.Fixed in 3.20.9 - Upgrade
Upgrade
GitHub Enterprise Serverto a version that resolves this vulnerability.Fixed in 3.21.7 - Upgrade
Upgrade
GitHub Enterprise Serverto a version that resolves this vulnerability.Fixed in 3.22.2
Event History
Frequently Asked Questions
Which deployments are exposed?
Only GitHub Enterprise Server instances running 3.20, 3.21, or 3.22 with GitHub Advanced Security and secret scanning validity checks enabled are affected. The required secret-scanning configuration is non-default.
What access does an attacker need?
An attacker needs an authenticated account with permission to push to a repository on the affected instance. They can commit GCP service account credentials containing an attacker-controlled token endpoint, causing the appliance to request an internal host.
How serious is successful exploitation?
The SSRF can be chained to achieve remote code execution on the appliance. The CVSS 4.0 score is 8.7 (High), with high impacts to confidentiality, integrity, and availability.
Which versions fix the issue?
Upgrade affected 3.20 installations to 3.20.9, 3.21 installations to 3.21.7, or 3.22 installations to 3.22.2.