Skip to content

GitHub Enterprise Server

Stored cross-site scripting vulnerability in GitHub Enterprise Server allowed HTML attribute injection via the Markdown rendering pipeline

CVE-2026-77912Published 22 Sep 2026, 20:43 UTC

Real-world risk

1.3/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

7.4

scored by the vendor (CNA), CVSS 4.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_P)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
GitHub Enterprise ServerWidespread>= 3.17.0, < 3.17.*; >= 3.18.0, < 3.18.*; >= 3.19.0, < 3.19.*; >= 3.20.0, < 3.20.*; >= 3.21.0, < 3.21.*; >= 3.22.0, < 3.22.*—

What to do

Check the vendor advisory in the references below for fixed versions and workarounds.

Why this score

FactorValueEvidence×
ImpactMajor data exposureReads secrets, credentials, databases, arbitrary filesFrom the CVSS vector0.80
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededLowA real low-privileged accountFrom the CVSS vector0.60
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.2% chance of exploitation in 30 days (percentile 17), as of 2026-12-04.

The arithmetic
  1. Prerequisites multiplied together0.189
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.8 × prerequisites 0.189 × threat 0.851.285
  4. Rounded to one decimal between 0.1 and 101.3

How the score works

Exploitation and evidence timeline

  1. 22 Sep 2026 Published
  2. 3 Dec 2026 Risk 1.3 (cvss fallback)

Weakness

CWE-79

References

Get alerts for GitHub Enterprise Server

Free email or text alerts when a vulnerability in GitHub Enterprise Server reaches risk 8 or higher. Nothing else.