CVE-2025-3246 Markdown math block sanitization bypass allows privilege escalation and unauthorized workflow triggers
Cross-site scripting in Markdown math blocks allows attackers to escalate privileges and trigger unauthorized workflows on GitHub Enterprise Server.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2025-3246?
CVE-2025-3246 is a high-severity cross-site scripting vulnerability in Github Enterprise Server, published on 17 Apr 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
An improper neutralization of input vulnerability was identified in GitHub Enterprise Server that allowed cross-site scripting in GitHub Markdown that used `$$..$$` math blocks. Exploitation required access to the target GitHub Enterprise Server instance and privileged user interaction with the malicious elements. This vulnerability affected version 3.16.1 of GitHub Enterprise Server and was fixed in version 3.16.2. This vulnerability was reported via the GitHub Bug Bounty program.
Weakness: CWE-79
Which versions are affected by CVE-2025-3246?
It affects 1 product.
Products include Github Enterprise Server.
How do I fix CVE-2025-3246?
No fix has been published for CVE-2025-3246 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-3246 being exploited?
There is no known exploitation of CVE-2025-3246 in the wild and no public exploit code.
Other vulnerabilities in Github Enterprise Server
- CVE-2024-4985 Auth bypass in Enterprise Server
- CVE-2022-23739 Missing authorization in GitHub Enterprise Server
- CVE-2022-46255 Improper Limitation of a Pathname to a Restricted Directory in GitHub Enterprise Server leading to RCE
- CVE-2021-22869 Improper access control in GitHub Enterprise Server allows self-hosted runners to execute outside their control group
- CVE-2024-9487 Auth bypass in Enterprise Server
Sources
Also known as GHSA-m3q4-379j-85vm.