{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-10585","assignerOrgId":"82327ea3-741d-41e4-88f8-2cf9e791e760","state":"PUBLISHED","assignerShortName":"GitHub_P","dateReserved":"2026-06-01T19:08:05.407Z","datePublished":"2026-06-30T21:39:02.311Z","dateUpdated":"2026-07-01T15:36:59.198Z"},"containers":{"cna":{"providerMetadata":{"orgId":"82327ea3-741d-41e4-88f8-2cf9e791e760","shortName":"GitHub_P","dateUpdated":"2026-07-01T13:04:35.540Z"},"title":"Stored cross-site scripting vulnerability in GitHub Enterprise Server allowed arbitrary JavaScript execution via crafted Discussion titles in the Q&A category","problemTypes":[{"descriptions":[{"lang":"en","cweId":"CWE-79","description":"CWE-79 Improper neutralization of input during web page generation ('cross-site scripting')","type":"CWE"}]}],"impacts":[{"capecId":"CAPEC-592","descriptions":[{"lang":"en","value":"CAPEC-592 Stored XSS"}]}],"affected":[{"vendor":"GitHub","product":"Enterprise Server","versions":[{"status":"affected","version":"3.17.0","lessThanOrEqual":"3.17.16","changes":[{"at":"3.17.17","status":"unaffected"}],"versionType":"semver"},{"status":"affected","version":"3.18.0","lessThanOrEqual":"3.18.10","changes":[{"at":"3.18.11","status":"unaffected"}],"versionType":"semver"},{"status":"affected","version":"3.19.0","lessThanOrEqual":"3.19.7","changes":[{"at":"3.19.8","status":"unaffected"}],"versionType":"semver"},{"status":"affected","version":"3.20.0","lessThanOrEqual":"3.20.3","changes":[{"at":"3.20.4","status":"unaffected"}],"versionType":"semver"},{"status":"affected","version":"3.16.0","lessThanOrEqual":"3.16.19","changes":[{"at":"3.16.20","status":"unaffected"}],"versionType":"semver"}],"defaultStatus":"affected"}],"descriptions":[{"lang":"en","value":"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.","supportingMedia":[{"type":"text/html","base64":false,"value":"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&amp;A category. The <code>AnsweredQuestionStructuredDataComponent</code> did not escape user-controlled Discussion titles before embedding them in a <code>&lt;script type=\"application/ld+json\"&gt;</code> 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."}]}],"references":[{"url":"https://docs.github.com/en/enterprise-server@3.17/admin/release-notes#3.17.17"},{"url":"https://docs.github.com/en/enterprise-server@3.18/admin/release-notes#3.18.11"},{"url":"https://docs.github.com/en/enterprise-server@3.19/admin/release-notes#3.19.8"},{"url":"https://docs.github.com/en/enterprise-server@3.20/admin/release-notes#3.20.4"},{"url":"https://docs.github.com/en/enterprise-server@3.16/admin/release-notes#3.16.20"}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"PASSIVE","vulnConfidentialityImpact":"LOW","subConfidentialityImpact":"HIGH","vulnIntegrityImpact":"LOW","subIntegrityImpact":"HIGH","vulnAvailabilityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"MEDIUM","baseScore":6.3,"vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:H/SI:H/SA:N"}}],"credits":[{"lang":"en","value":"hamayanhamayan","type":"finder"},{"lang":"en","value":"Seokchan Yoon (hxxps://ch4n3.kr)","type":"finder"}],"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 1.0.2"}},"adp":[{"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-01T15:36:51.127934Z","id":"CVE-2026-10585","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2026-07-01T15:36:59.198Z"}}]}}