🔍 CVE-2026-77912

5.4
CVSS Score
MEDIUM
2026-09-22
2026-10-02 18:38
✅ 완료

🇰🇷 한글 설명

GitHub Enterprise Server에서 인증된 공격자가 마크다운 렌더링 파이프라인의 취약점을 악용하여 임의의 HTML 속성을 주입할 수 있는 저장형 XSS 취약점이 발견되었습니다. 공격자는 이를 통해 콘텐츠 보안 정책(CSP)을 우회하고 피해자의 세션에서 CSRF 토큰 탈취, 데이터 유출 및 권한 있는 동작을 수행할 수 있습니다.

💡 쉬운 설명

게시글에 특수하게 조작된 글을 올리면, 다른 사용자가 그 글을 읽을 때 공격자가 의도한 악성 코드가 실행될 수 있는 보안 결함입니다. 이를 통해 공격자는 사용자의 정보를 훔치거나 사용자인 척 행동할 수 있습니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

GitHub Enterprise Server 3.17, 3.18, 3.19, 3.20, 3.21, 3.22 시리즈

⚔️ 공격 벡터

인증된 공격자가 마크다운 내에 특수하게 조작된 HTML 속성을 포함시켜 저장함으로써 발생

🛡️ 대응 방법

GitHub Enterprise Server를 수정 버전(3.22.1, 3.21.6, 3.20.8, 3.19.12, 3.18.15, 3.17.21 이상)으로 업데이트하십시오.

🔧 검증 코드

출력된 버전 번호가 보안 패치가 적용된 최소 버전(예: 3.22.1 등)보다 높은지 확인하십시오.

Shell / Script
curl -s http://<GHES_HOSTNAME>/api/v3/connection | grep -E 'version' || echo 'Check version via GHES UI'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N