# 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

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_P) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-06-30T21:39:02.311Z
- Modified: 2026-10-25T21:10:00.770Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_P

## 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.

(As written by CVE List.)

## Affected

- GitHub Enterprise Server: from 3.17.0 up to 3.17.16; from 3.18.0 up to 3.18.10; from 3.19.0 up to 3.19.7; from 3.20.0 up to 3.20.3; from 3.16.0 up to 3.16.19
- github enterprise_server: before 3.16.20; from 3.17.0 before 3.17.17; from 3.18.0 before 3.18.11; from 3.19.0 before 3.19.8; from 3.20.0 before 3.20.4

## Every score

- GitHub_P: CVSS:4.0 6.3 Medium `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`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://docs.github.com/en/enterprise-server@3.17/admin/release-notes#3.17.17> (release-notes)
- <https://docs.github.com/en/enterprise-server@3.18/admin/release-notes#3.18.11> (release-notes)
- <https://docs.github.com/en/enterprise-server@3.19/admin/release-notes#3.19.8> (release-notes)
- <https://docs.github.com/en/enterprise-server@3.20/admin/release-notes#3.20.4> (release-notes)
- <https://docs.github.com/en/enterprise-server@3.16/admin/release-notes#3.16.20> (release-notes)

## Sources

- CVE List: [CVE-2026-10585](https://www.cve.org/CVERecord?id=CVE-2026-10585), CVE Terms of Use, modified 2026-07-01
- NVD: [CVE-2026-10585](https://nvd.nist.gov/vuln/detail/CVE-2026-10585), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-10585 · Whole record: https://cve.day/CVE-2026-10585.json · Rebuilt by cve.day 2026-11-25T22:59:26.732Z
