Independent & educational platform Not a government body. No link or affiliation with any government organisation. Made for learning only. Test only systems you own or are authorised to test. Become a Partner or Sponsor → Full disclaimer

CVE-2026-77912

medium

A stored cross-site scripting (XSS) vulnerability was identified in GitHub Enterprise Server that allowed an authenticated attacker to inject arbitrary HTML at…

Vendor / product: Github — enterprise server

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.

CVSS
5.4
5.4 (CVSS v3.1)
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Severity source: NVD CVSS v3.1 (nvd@nist.gov)
Timeline (UTC)
Published: 2026-09-22 21:17
Modified: 2026-10-02 18:38
NVD status: Analyzed
Last synced 2 days ago
Verified against the source API 2026-10-27 06:55 UTC
Exploitation
Not listed in CISA KEV (as of last catalog sync)
Absence from KEV does not mean a CVE is not exploited. Exploitation status: unknown (no authoritative evidence in our sources).

Affected products

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 classification (CWE)

Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.

Mitigation & advisories

Vendor advisory: https://docs.github.com/en/enterprise-server@3.17/admin/release-notes#3.17.21
Vendor advisory: https://docs.github.com/en/enterprise-server@3.18/admin/release-notes#3.18.15
Vendor advisory: https://docs.github.com/en/enterprise-server@3.19/admin/release-notes#3.19.12
Vendor advisory: https://docs.github.com/en/enterprise-server@3.20/admin/release-notes#3.20.8
Vendor advisory: https://docs.github.com/en/enterprise-server@3.21/admin/release-notes#3.21.6
Vendor advisory: https://docs.github.com/en/enterprise-server@3.22/admin/release-notes#3.22.1

References

Data sources

NVD CVE API 2.0 — fetched 2026-10-27 06:55 UTC · record ↗

Learn the basics

Understanding CVEs and CVSS Scores

Related CVEs