CVE-2026-77987: GitHub Enterprise Server notebook viewer vulnerable to Server-side request forgery
A server-side request forgery (SSRF) vulnerability was identified in the notebook viewer of GitHub Enterprise Server. The notebook viewer validated the scheme and host of a user-supplied URL but did not validate the port, allowing requests to be directed to internal services listening on other ports of the same appliance. Response bodies were not returned to the requester, but response timing acted as an oracle that allowed instance secrets to be extracted character by character. An extracted secret could then be used in a separate interaction with an internal service to obtain remote code execution on the appliance. Exploitation required network access to the instance and was unauthenticated when private mode was disabled, or required any authenticated user when private mode was enabled. This vulnerability affected GitHub Enterprise Server versions 3.17 through 3.22 and was fixed in versions 3.22.1, 3.21.6, 3.20.8, 3.19.12, 3.18.15, and 3.17.21. 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.22.1
Event History
Frequently Asked Questions
Who can exploit this vulnerability?
An attacker needs network access to the GitHub Enterprise Server instance. Exploitation is unauthenticated when private mode is disabled; when private mode is enabled, any authenticated user can exploit it.
What is the practical impact of a successful exploit?
The timing of requests to internal services can be used to extract instance secrets character by character, even though response bodies are not returned. An extracted secret can then be used in a separate interaction with an internal service to obtain remote code execution on the appliance.
Which versions are affected and which releases contain fixes?
GitHub Enterprise Server versions 3.17 through 3.22 are affected. Fixed releases are 3.22.1, 3.21.6, 3.20.8, 3.19.12, 3.18.15, and 3.17.21.