CVE-2026-10585
Stored cross-site scripting vulnerability in GitHub Enterprise Server allowed arbitrary JavaScript execution via crafted Discussion titles in the Q&A category
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.
INFO
Published Date :
June 30, 2026, 10:16 p.m.
Last Modified :
July 2, 2026, 3:33 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 4.0 | MEDIUM | 82327ea3-741d-41e4-88f8-2cf9e791e760 | ||||
| CVSS 4.0 | MEDIUM | [email protected] |
Solution
- Update GitHub Enterprise Server to version 3.20.4 or later.
- Apply security patches for affected versions.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-10585.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-10585 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-10585
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-10585 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-10585 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Jul. 02, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N Added CPE Configuration OR *cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:* versions up to (excluding) 3.16.20 *cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:* versions from (including) 3.17.0 up to (excluding) 3.17.17 *cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:* versions from (including) 3.18.0 up to (excluding) 3.18.11 *cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:* versions from (including) 3.19.0 up to (excluding) 3.19.8 *cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:* versions from (including) 3.20.0 up to (excluding) 3.20.4 Added Reference Type GitHub, Inc. (Products Only): https://docs.github.com/en/[email protected]/admin/release-notes#3.16.20 Types: Release Notes Added Reference Type GitHub, Inc. (Products Only): https://docs.github.com/en/[email protected]/admin/release-notes#3.17.17 Types: Release Notes Added Reference Type GitHub, Inc. (Products Only): https://docs.github.com/en/[email protected]/admin/release-notes#3.18.11 Types: Release Notes Added Reference Type GitHub, Inc. (Products Only): https://docs.github.com/en/[email protected]/admin/release-notes#3.19.8 Types: Release Notes Added Reference Type GitHub, Inc. (Products Only): https://docs.github.com/en/[email protected]/admin/release-notes#3.20.4 Types: Release Notes -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jul. 01, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-10585', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-07-01T15:36:51.127934Z'} -
CVE Modified by [email protected]
Jul. 01, 2026
Action Type Old Value New Value Changed Affected [{'vendor': 'GitHub', 'product': 'Enterprise Server', 'versions': [{'status': 'affected', 'changes': [{'at': '3.17.17', 'status': 'unaffected'}], 'version': '3.17.0', 'versionType': 'semver', 'lessThanOrEqual': '3.17.16'}, {'status': 'affected', 'changes': [{'at': '3.18.11', 'status': 'unaffected'}], 'version': '3.18.0', 'versionType': 'semver', 'lessThanOrEqual': '3.18.10'}, {'status': 'affected', 'changes': [{'at': '3.19.8', 'status': 'unaffected'}], 'version': '3.19.0', 'versionType': 'semver', 'lessThanOrEqual': '3.19.7'}, {'status': 'affected', 'changes': [{'at': '3.20.4', 'status': 'unaffected'}], 'version': '3.20.0', 'versionType': 'semver', 'lessThanOrEqual': '3.20.3'}], 'defaultStatus': 'affected'}] [{'vendor': 'GitHub', 'product': 'Enterprise Server', 'versions': [{'status': 'affected', 'changes': [{'at': '3.17.17', 'status': 'unaffected'}], 'version': '3.17.0', 'versionType': 'semver', 'lessThanOrEqual': '3.17.16'}, {'status': 'affected', 'changes': [{'at': '3.18.11', 'status': 'unaffected'}], 'version': '3.18.0', 'versionType': 'semver', 'lessThanOrEqual': '3.18.10'}, {'status': 'affected', 'changes': [{'at': '3.19.8', 'status': 'unaffected'}], 'version': '3.19.0', 'versionType': 'semver', 'lessThanOrEqual': '3.19.7'}, {'status': 'affected', 'changes': [{'at': '3.20.4', 'status': 'unaffected'}], 'version': '3.20.0', 'versionType': 'semver', 'lessThanOrEqual': '3.20.3'}, {'status': 'affected', 'changes': [{'at': '3.16.20', 'status': 'unaffected'}], 'version': '3.16.0', 'versionType': 'semver', 'lessThanOrEqual': '3.16.19'}], 'defaultStatus': 'affected'}] Changed 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. This vulnerability was reported via the GitHub Bug Bounty program. 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. Added Reference https://docs.github.com/en/[email protected]/admin/release-notes#3.16.20 -
CVE Modified by [email protected]
Jul. 01, 2026
Action Type Old Value New Value Changed 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. This vulnerability was reported via the GitHub Bug Bounty program. 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. This vulnerability was reported via the GitHub Bug Bounty program. -
CVE Modified by [email protected]
Jun. 30, 2026
Action Type Old Value New Value Changed 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. This vulnerability was reported via the GitHub Bug Bounty program https://bounty.github.com/ . 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. This vulnerability was reported via the GitHub Bug Bounty program. -
New CVE Received by [email protected]
Jun. 30, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'GitHub', 'product': 'Enterprise Server', 'versions': [{'status': 'affected', 'changes': [{'at': '3.17.17', 'status': 'unaffected'}], 'version': '3.17.0', 'versionType': 'semver', 'lessThanOrEqual': '3.17.16'}, {'status': 'affected', 'changes': [{'at': '3.18.11', 'status': 'unaffected'}], 'version': '3.18.0', 'versionType': 'semver', 'lessThanOrEqual': '3.18.10'}, {'status': 'affected', 'changes': [{'at': '3.19.8', 'status': 'unaffected'}], 'version': '3.19.0', 'versionType': 'semver', 'lessThanOrEqual': '3.19.7'}, {'status': 'affected', 'changes': [{'at': '3.20.4', 'status': 'unaffected'}], 'version': '3.20.0', 'versionType': 'semver', 'lessThanOrEqual': '3.20.3'}], 'defaultStatus': 'affected'}] Added 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. This vulnerability was reported via the GitHub Bug Bounty program https://bounty.github.com/ . Added CVSS V4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CWE CWE-79 Added Reference https://docs.github.com/en/[email protected]/admin/release-notes#3.17.17 Added Reference https://docs.github.com/en/[email protected]/admin/release-notes#3.18.11 Added Reference https://docs.github.com/en/[email protected]/admin/release-notes#3.19.8 Added Reference https://docs.github.com/en/[email protected]/admin/release-notes#3.20.4