{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2026-10585",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2026-10585",
    "idYear": 2026,
    "status": "PUBLISHED",
    "publishedAt": "2026-06-30T21:39:02.311Z",
    "updatedAt": "2026-07-01T15:36:59.198Z",
    "importedAt": "2026-10-24T01:57:50.502Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "Stored cross-site scripting vulnerability in GitHub Enterprise Server allowed arbitrary JavaScript execution via crafted Discussion titles in the Q&A category",
      "summary": "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": [
        {
          "vendor": "GitHub",
          "product": "Enterprise Server",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "3.17.0",
              "status": "affected",
              "versionType": "semver",
              "lessThanOrEqual": "3.17.16",
              "changes": [
                {
                  "at": "3.17.17",
                  "status": "unaffected"
                }
              ]
            },
            {
              "version": "3.18.0",
              "status": "affected",
              "versionType": "semver",
              "lessThanOrEqual": "3.18.10",
              "changes": [
                {
                  "at": "3.18.11",
                  "status": "unaffected"
                }
              ]
            },
            {
              "version": "3.19.0",
              "status": "affected",
              "versionType": "semver",
              "lessThanOrEqual": "3.19.7",
              "changes": [
                {
                  "at": "3.19.8",
                  "status": "unaffected"
                }
              ]
            },
            {
              "version": "3.20.0",
              "status": "affected",
              "versionType": "semver",
              "lessThanOrEqual": "3.20.3",
              "changes": [
                {
                  "at": "3.20.4",
                  "status": "unaffected"
                }
              ]
            },
            {
              "version": "3.16.0",
              "status": "affected",
              "versionType": "semver",
              "lessThanOrEqual": "3.16.19",
              "changes": [
                {
                  "at": "3.16.20",
                  "status": "unaffected"
                }
              ]
            }
          ]
        }
      ]
    }
  }
}