{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-77912",
        "assignerOrgId": "82327ea3-741d-41e4-88f8-2cf9e791e760",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_P",
        "dateReserved": "2026-08-21T17:43:37.308Z",
        "datePublished": "2026-09-22T20:43:56.061Z",
        "dateUpdated": "2026-09-22T20:43:56.061Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "82327ea3-741d-41e4-88f8-2cf9e791e760",
                "shortName": "GitHub_P",
                "dateUpdated": "2026-09-22T20:43:56.061Z"
            },
            "title": "Stored cross-site scripting vulnerability in GitHub Enterprise Server allowed HTML attribute injection via the Markdown rendering pipeline",
            "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",
                            "lessThan": "3.17.*",
                            "changes": [
                                {
                                    "at": "3.17.21",
                                    "status": "unaffected"
                                }
                            ],
                            "versionType": "semver"
                        },
                        {
                            "status": "affected",
                            "version": "3.18.0",
                            "lessThan": "3.18.*",
                            "changes": [
                                {
                                    "at": "3.18.15",
                                    "status": "unaffected"
                                }
                            ],
                            "versionType": "semver"
                        },
                        {
                            "status": "affected",
                            "version": "3.19.0",
                            "lessThan": "3.19.*",
                            "changes": [
                                {
                                    "at": "3.19.12",
                                    "status": "unaffected"
                                }
                            ],
                            "versionType": "semver"
                        },
                        {
                            "status": "affected",
                            "version": "3.20.0",
                            "lessThan": "3.20.*",
                            "changes": [
                                {
                                    "at": "3.20.8",
                                    "status": "unaffected"
                                }
                            ],
                            "versionType": "semver"
                        },
                        {
                            "status": "affected",
                            "version": "3.21.0",
                            "lessThan": "3.21.*",
                            "changes": [
                                {
                                    "at": "3.21.6",
                                    "status": "unaffected"
                                }
                            ],
                            "versionType": "semver"
                        },
                        {
                            "status": "affected",
                            "version": "3.22.0",
                            "lessThan": "3.22.*",
                            "changes": [
                                {
                                    "at": "3.22.1",
                                    "status": "unaffected"
                                }
                            ],
                            "versionType": "semver"
                        }
                    ],
                    "defaultStatus": "unknown"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "A stored cross-site scripting (XSS) vulnerability was identified in GitHub Enterprise Server that allowed an authenticated attacker to inject arbitrary HTML attributes into rendered Markdown because the Markdown rendering pipeline rewrote quote characters in already-sanitized HTML without re-sanitizing the result. Crafted Markdown could abuse same-origin JavaScript gadgets to bypass Content Security Policy and gain control of the page DOM when viewed by another user. Successful exploitation could allow an attacker to read content visible to the victim, extract embedded CSRF tokens, perform state-changing actions as the victim, and exfiltrate data through same-origin writes. The payload could also propagate to repositories and organizations where the victim had write access. This vulnerability affected supported GitHub Enterprise Server releases in the 3.17, 3.18, 3.19, 3.20, 3.21, and 3.22 series and was fixed in versions 3.22.1, 3.21.6, 3.20.8, 3.19.12, 3.18.15, and 3.17.21. This vulnerability was reported via the GitHub Bug Bounty program.",
                    "supportingMedia": [
                        {
                            "type": "text/html",
                            "base64": false,
                            "value": "A stored cross-site scripting (XSS) vulnerability was identified in GitHub Enterprise Server that allowed an authenticated attacker to inject arbitrary HTML attributes into rendered Markdown because the Markdown rendering pipeline rewrote quote characters in already-sanitized HTML without re-sanitizing the result. Crafted Markdown could abuse same-origin JavaScript gadgets to bypass Content Security Policy and gain control of the page DOM when viewed by another user. Successful exploitation could allow an attacker to read content visible to the victim, extract embedded CSRF tokens, perform state-changing actions as the victim, and exfiltrate data through same-origin writes. The payload could also propagate to repositories and organizations where the victim had write access. This vulnerability affected supported GitHub Enterprise Server releases in the 3.17, 3.18, 3.19, 3.20, 3.21, and 3.22 series and was fixed in versions 3.22.1, 3.21.6, 3.20.8, 3.19.12, 3.18.15, and 3.17.21. This vulnerability was reported via the GitHub Bug Bounty program.<br><br>"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://docs.github.com/en/enterprise-server@3.17/admin/release-notes#3.17.21",
                    "tags": [
                        "release-notes"
                    ]
                },
                {
                    "url": "https://docs.github.com/en/enterprise-server@3.18/admin/release-notes#3.18.15",
                    "tags": [
                        "release-notes"
                    ]
                },
                {
                    "url": "https://docs.github.com/en/enterprise-server@3.19/admin/release-notes#3.19.12",
                    "tags": [
                        "release-notes"
                    ]
                },
                {
                    "url": "https://docs.github.com/en/enterprise-server@3.20/admin/release-notes#3.20.8",
                    "tags": [
                        "release-notes"
                    ]
                },
                {
                    "url": "https://docs.github.com/en/enterprise-server@3.21/admin/release-notes#3.21.6",
                    "tags": [
                        "release-notes"
                    ]
                },
                {
                    "url": "https://docs.github.com/en/enterprise-server@3.22/admin/release-notes#3.22.1",
                    "tags": [
                        "release-notes"
                    ]
                }
            ],
            "metrics": [
                {
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ],
                    "cvssV4_0": {
                        "attackVector": "NETWORK",
                        "attackComplexity": "HIGH",
                        "attackRequirements": "NONE",
                        "privilegesRequired": "LOW",
                        "userInteraction": "PASSIVE",
                        "vulnConfidentialityImpact": "HIGH",
                        "subConfidentialityImpact": "LOW",
                        "vulnIntegrityImpact": "HIGH",
                        "subIntegrityImpact": "LOW",
                        "vulnAvailabilityImpact": "NONE",
                        "subAvailabilityImpact": "NONE",
                        "exploitMaturity": "NOT_DEFINED",
                        "Safety": "NOT_DEFINED",
                        "Automatable": "YES",
                        "Recovery": "NOT_DEFINED",
                        "valueDensity": "NOT_DEFINED",
                        "vulnerabilityResponseEffort": "NOT_DEFINED",
                        "providerUrgency": "NOT_DEFINED",
                        "version": "4.0",
                        "baseSeverity": "HIGH",
                        "baseScore": 7.4,
                        "vectorString": "CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N/AU:Y"
                    }
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "ahacker1",
                    "type": "finder"
                }
            ],
            "source": {
                "discovery": "EXTERNAL"
            },
            "x_generator": {
                "engine": "Vulnogram 0.2.0"
            }
        }
    }
}