A stored cross-site scripting (XSS) vulnerability was identified in GitHub Enterprise Server that allowed an authenticated attacker to inject… (CVE-2026-77912)
A stored cross-site scripting (XSS) vulnerability in GitHub Enterprise Server allowed authenticated attackers to inject arbitrary HTML attributes into rendered Markdown. This was due to the Markdown rendering pipeline rewriting quote characters in already-sanitized HTML without re-sanitizing the output. Exploitation could bypass Content Security Policy, enabling control of the page DOM when viewed by other users. Attackers could read visible content, extract CSRF tokens, perform actions as the victim, and exfiltrate data. The malicious payload could also spread to repositories and organizations where the victim had write access. The issue affected multiple supported versions and has been fixed in specific patch releases.
AI Analysis
Technical Summary
CVE-2026-77912 is a stored XSS vulnerability in GitHub Enterprise Server's Markdown rendering pipeline. Authenticated attackers could inject crafted Markdown that abuses same-origin JavaScript gadgets to bypass Content Security Policy by exploiting the rewriting of quote characters in sanitized HTML without re-sanitization. This allows attackers to manipulate the DOM of pages viewed by other users, potentially reading sensitive content, extracting CSRF tokens, performing state-changing actions on behalf of victims, and exfiltrating data. The payload can propagate across repositories and organizations with victim write access. The vulnerability affects supported releases in the 3.17 through 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.
Potential Impact
Successful exploitation allows an authenticated attacker to execute stored cross-site scripting attacks that can bypass Content Security Policy, read content visible to victims, extract embedded CSRF tokens, perform unauthorized state-changing actions as the victim, and exfiltrate data. The payload can also spread to other repositories and organizations where the victim has write access, increasing the attack surface and potential impact.
Mitigation Recommendations
This vulnerability has been fixed in GitHub Enterprise Server versions 3.22.1, 3.21.6, 3.20.8, 3.19.12, 3.18.15, and 3.17.21. Users should upgrade to these or later versions to remediate the issue. No additional mitigation steps are indicated beyond applying the official patches.
A stored cross-site scripting (XSS) vulnerability was identified in GitHub Enterprise Server that allowed an authenticated attacker to inject… (CVE-2026-77912)
Description
A stored cross-site scripting (XSS) vulnerability in GitHub Enterprise Server allowed authenticated attackers to inject arbitrary HTML attributes into rendered Markdown. This was due to the Markdown rendering pipeline rewriting quote characters in already-sanitized HTML without re-sanitizing the output. Exploitation could bypass Content Security Policy, enabling control of the page DOM when viewed by other users. Attackers could read visible content, extract CSRF tokens, perform actions as the victim, and exfiltrate data. The malicious payload could also spread to repositories and organizations where the victim had write access. The issue affected multiple supported versions and has been fixed in specific patch releases.
CVSS v3.1
Score 5.4medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-77912 is a stored XSS vulnerability in GitHub Enterprise Server's Markdown rendering pipeline. Authenticated attackers could inject crafted Markdown that abuses same-origin JavaScript gadgets to bypass Content Security Policy by exploiting the rewriting of quote characters in sanitized HTML without re-sanitization. This allows attackers to manipulate the DOM of pages viewed by other users, potentially reading sensitive content, extracting CSRF tokens, performing state-changing actions on behalf of victims, and exfiltrating data. The payload can propagate across repositories and organizations with victim write access. The vulnerability affects supported releases in the 3.17 through 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.
Potential Impact
Successful exploitation allows an authenticated attacker to execute stored cross-site scripting attacks that can bypass Content Security Policy, read content visible to victims, extract embedded CSRF tokens, perform unauthorized state-changing actions as the victim, and exfiltrate data. The payload can also spread to other repositories and organizations where the victim has write access, increasing the attack surface and potential impact.
Mitigation Recommendations
This vulnerability has been fixed in GitHub Enterprise Server versions 3.22.1, 3.21.6, 3.20.8, 3.19.12, 3.18.15, and 3.17.21. Users should upgrade to these or later versions to remediate the issue. No additional mitigation steps are indicated beyond applying the official patches.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-6293-4rx2-2p57
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-77912"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ac139c3a43b0b3b89d69d67
Added to database: 10/03/2026, 17:22:11 UTC
Last enriched: 10/03/2026, 17:44:12 UTC
Last updated: 10/03/2026, 21:11:43 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.