CVE-2026-77987 — GitHub Enterprise Server
Summary
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.
Severity breakdown
Critical · 9.3
An attacker without an account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- no
- Impact
- high on confidentiality, integrity and availability
- Impact on other systems
- none
Weakness
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| GitHub Enterprise Server | ≥ 3.17.0 | 3.17.21 |
| ≥ 3.18.0 | 3.18.15 | |
| ≥ 3.19.0 | 3.19.12 | |
| ≥ 3.20.0 | 3.20.8 | |
| ≥ 3.21.0 | 3.21.6 | |
| ≥ 3.22.0 | 3.22.1 |
References by type
Patches and fixed releases
- docs.github.com/en/enterprise-server@3.17/admin/release-notes
- docs.github.com/en/enterprise-server@3.18/admin/release-notes
- docs.github.com/en/enterprise-server@3.19/admin/release-notes
- docs.github.com/en/enterprise-server@3.20/admin/release-notes
- docs.github.com/en/enterprise-server@3.21/admin/release-notes
- docs.github.com/en/enterprise-server@3.22/admin/release-notes
Affected
- GitHub Enterprise Server
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-77987?
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. Weakness type: Observable Timing Discrepancy (CWE-208).
How severe is CVE-2026-77987?
CVE-2026-77987 has a CVSS 4.0 base score of 9.3 (critical), from the CNA (github.com). An attacker without an account can exploit this over the network, without any user action.
Is CVE-2026-77987 being exploited?
Not as far as is known: CVE-2026-77987 is not in CISA's Known Exploited Vulnerabilities catalog as of November 29, 2026. EPSS estimates a 1.4% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-77987?
GitHub Enterprise Server ≥ 3.17.0 (fixed in 3.17.21); GitHub Enterprise Server ≥ 3.18.0 (fixed in 3.18.15); GitHub Enterprise Server ≥ 3.19.0 (fixed in 3.19.12); GitHub Enterprise Server ≥ 3.20.0 (fixed in 3.20.8); and more, listed on this page.
How do I fix CVE-2026-77987?
Update to a fixed release: GitHub Enterprise Server 3.17.21; GitHub Enterprise Server 3.18.15; GitHub Enterprise Server 3.19.12.