CVE-2026-10585 Cross-site scripting in Enterprise Server

Medium 6.3 Published Updated

Authenticated attackers can execute arbitrary JavaScript in other users' browsers via crafted Discussion titles, potentially leading to account takeover.

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-2026-10585?

CVE-2026-10585 is a medium-severity cross-site scripting vulnerability in Github Enterprise Server, published on 30 Jun 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

A stored cross-site scripting vulnerability was identified in GitHub Enterprise Server that allowed an authenticated attacker to execute arbitrary JavaScript in another user's browser by injecting a crafted payload into the title of a Discussion in the Q&A category. The AnsweredQuestionStructuredDataComponent did not escape user-controlled Discussion titles before embedding them in a <script type="application/ld+json"> block, allowing the title to break out of the script context. The injection was escalated to a full cross-site scripting attack on GitHub Enterprise Server by leveraging JSONP callback support in the REST API to bypass the Content Security Policy. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.21 and was fixed in versions 3.20.4, 3.19.8, 3.18.11, 3.17.17, 3.16.20. This vulnerability was reported via the GitHub Bug Bounty program.

Weakness: CWE-79

Which versions are affected by CVE-2026-10585?

It affects 1 product.

Products include Github Enterprise Server.

How do I fix CVE-2026-10585?

No fix has been published for CVE-2026-10585 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-2026-10585 being exploited?

There is no known exploitation of CVE-2026-10585 in the wild and no public exploit code.

All Github Enterprise Server vulnerabilities

Sources

Also known as GHSA-f24q-32qp-rrx8.

Is CVE-2026-10585 in your software?

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

Check your SBOMs for free