CVE-2026-10585 Details
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.
A stored cross-site scripting vulnerability exists in GitHub Enterprise Server versions prior to 3.21. This vulnerability allows authenticated attackers to execute arbitrary JavaScript in the browsers of other users. The issue arises from the 'AnsweredQuestionStructuredDataComponent', which fails to properly escape user-controlled discussion titles before inserting them into a JSON-LD structured data script block. This flaw enables the title to escape the script context. Exploitation involves injecting a crafted title into a discussion in the Q&A category, which, when marked as answered, executes the injected JavaScript. The vulnerability is further escalated by using JSONP callback support in the REST API to bypass Content Security Policy restrictions.
Users can upgrade to GitHub Enterprise Server versions 3.20.4, 3.19.8, 3.18.11, or 3.17.17, all of which include the necessary fix.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 1, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| github enterprise server | < 3.16.20 >= 3.17.0, < 3.17.17 >= 3.18.0, < 3.18.11 >= 3.19.0, < 3.19.8 >= 3.20.0, < 3.20.4 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jul 2, 2026 | Initial Analysis | [email protected] |
| Jul 1, 2026 | CVE Modified | CISA-ADP |
| Jul 1, 2026 | CVE Modified | [email protected] |
| Jul 1, 2026 | CVE Modified | [email protected] |
| Jun 30, 2026 | CVE Modified | [email protected] |
| Jun 30, 2026 | New CVE Received | [email protected] |