CVE-2026-10585

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

Configuration 1 (hide)

OR cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:*
cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:*
cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:*
cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:*
cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:*

History

25 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (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.

Information

Published : 2026-06-30 22:16

Updated : 2026-10-25 21:10


NVD link : CVE-2026-10585

Mitre link : CVE-2026-10585

CVE.ORG link : CVE-2026-10585


JSON object : View

Products Affected

github

  • enterprise_server
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')