CVE-2026-77912GitHub Enterprise Server cross-site scripting (XSS)
CVSS score
7.4
High
CVSS 4.0 from github.com
Exploit probability (EPSS)
0.24%
0.24% chance of exploitation in the next 30 days, higher than 15.7% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official description
A stored cross-site scripting (XSS) vulnerability was identified in GitHub Enterprise Server that allowed an authenticated attacker to inject arbitrary HTML attributes into rendered Markdown because the Markdown rendering pipeline rewrote quote characters in already-sanitized HTML without re-sanitizing the result. Crafted Markdown could abuse same-origin JavaScript gadgets to bypass Content Security Policy and gain control of the page DOM when viewed by another user. Successful exploitation could allow an attacker to read content visible to the victim, extract embedded CSRF tokens, perform state-changing actions as the victim, and exfiltrate data through same-origin writes. The payload could also propagate to repositories and organizations where the victim had write access. This vulnerability affected supported GitHub Enterprise Server releases in the 3.17, 3.18, 3.19, 3.20, 3.21, and 3.22 series 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 via the GitHub Bug Bounty program.
Source: NVD · CNA: product-cna@github.com
How to fix it, step by step
Check whether you're affected
Find every system running GitHub Enterprise Server and compare its version with the affected versions.
Update to a fixed version
- Update Enterprise Server to 3.17.21, 3.18.15, 3.19.12, 3.20.8 or later, on the branch you run.
If you can't update right away
Apply the workaround or mitigation in the vendor's advisory until you can update:
- docs.github.com/en/enterprise-server@3.17/admin/release-notes#3.17.21
- docs.github.com/en/enterprise-server@3.18/admin/release-notes#3.18.15
- docs.github.com/en/enterprise-server@3.19/admin/release-notes#3.19.12
- docs.github.com/en/enterprise-server@3.20/admin/release-notes#3.20.8
- docs.github.com/en/enterprise-server@3.21/admin/release-notes#3.21.6
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- High
- Attack requirements
- None
- Privileges required
- Low
- User interaction
- Passive
- Confidentiality
- High
- Integrity
- High
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:Y/R:X/V:X/RE:X/U:X
Affected products
| Affected products | Versions |
|---|---|
| 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 |
Weakness
- CWE-79 cross-site scripting (XSS)
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-77912 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.2% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-77912?
CVE-2026-77912 has a CVSS 4.0 base score of 7.4 (high).
Which versions are affected?
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)
Is there a patch for CVE-2026-77912?
The official record links to vendor advisories or patches; see “What to do” above.
References
- docs.github.com/en/enterprise-server@3.17/admin/release-notes#3.17.21(Release Notes, Vendor Advisory)
- docs.github.com/en/enterprise-server@3.18/admin/release-notes#3.18.15(Release Notes, Vendor Advisory)
- docs.github.com/en/enterprise-server@3.19/admin/release-notes#3.19.12(Release Notes, Vendor Advisory)
- docs.github.com/en/enterprise-server@3.20/admin/release-notes#3.20.8(Release Notes, Vendor Advisory)
- docs.github.com/en/enterprise-server@3.21/admin/release-notes#3.21.6(Release Notes, Vendor Advisory)
- docs.github.com/en/enterprise-server@3.22/admin/release-notes#3.22.1(Release Notes, Vendor Advisory)
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.