6.3medium
Stored cross-site scripting vulnerability in GitHub Enterprise Server allowed arbitrary JavaScript execution via crafted Discussion titles in the Q&A category
- Severity
- 6.3medium CVSS:4.0 by GitHub_P
- Exploit likelihood
- 0.18% (higher than 8% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 | CVE List |
| 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 | NVD |
All scores
| GitHub_P | 6.3medium CVSS:4.0 | 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 | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Una vulnerabilidad de cross-site scripting almacenado fue identificada en GitHub Enterprise Server que permitía a un atacante autenticado ejecutar JavaScript arbitrario en el navegador de otro usuario inyectando una carga útil manipulada en el título de una Discusión en la categoría de Preguntas y Respuestas. El AnsweredQuestionStructuredDataComponent no escapaba los títulos de Discusión controlados por el usuario antes de incrustarlos en un bloque [script_tag], permitiendo que el título saliera del contexto del script. La inyección fue escalada a un ataque completo de cross-site scripting en GitHub Enterprise Server aprovechando el soporte de devolución de llamada JSONP en la API REST para eludir la Política de Seguridad de Contenido. Esta vulnerabilidad afectó a todas las versiones de GitHub Enterprise Server anteriores a la 3.21 y fue corregida en las versiones 3.20.4, 3.19.8, 3.18.11, 3.17.17, 3.16.20. Esta vulnerabilidad fue reportada a través del programa de recompensas por errores de GitHub.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-10585 changed 2026-07-01 | CVE Terms of Use |
| NVD | CVE-2026-10585 changed 2026-10-25 | Public domain |