CVE-2025-3246 Markdown math block sanitization bypass allows privilege escalation and unauthorized workflow triggers

High 8.6 Published Updated

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.

All Github Enterprise Server vulnerabilities

Sources

Also known as GHSA-m3q4-379j-85vm.

Is CVE-2025-3246 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free