🔍 CVE-2026-66843

6.1
CVSS Score
MEDIUM
2026-08-06
2026-10-24 16:10
✅ 완료

🇰🇷 한글 설명

rrrene html_sanitize_ex의 HTML5 스크러버에서 신뢰되지 않은 제어 영역의 기능을 포함하는 취약점이 발견되었습니다. <object> 요소의 data 속성이 필터링되지 않아 원격 공격자가 신뢰된 페이지에 임의의 문서를 로드할 수 있습니다. 이는 무조건적인 XSS가 아니며, 동일 출처 경로에서 공격자 제어 콘텐츠가 제공되는 경우에 한해 스크립트 실행이 가능합니다.

💡 쉬운 설명

HTML을 안전하게 정리해 주는 라이브러리의 필터가 일부 우회 가능한 항목을 놓쳤습니다. 공격자가 악성 문서를 신뢰된 웹페이지 안에 끼워 넣을 수 있습니다.

🇺🇸 원문 (English)

Inclusion of Functionality from Untrusted Control Sphere vulnerability in the HTML5 scrubber in rrrene html_sanitize_ex allows a remote attacker to load a document of their choosing into a trusted page via the data attribute of an <object> element in sanitized HTML. object is the one URI-bearing element in lib/html_sanitize_ex/scrubber/html5.ex never registered through allow_tag_with_uri_attributes/3, and its only guard is a prefix match on lowercase "javascript:", so mixed-case variants, data: URIs, protocol-relative URLs and same-origin paths all survive. This is not unconditional cross-site scripting. A javascript: URL does not execute through <object data> in current browsers, data: documents load in an opaque origin, and host-origin script execution additionally requires the application to serve attacker-controlled content from a same-origin path. This issue affects html_sanitize_ex: from 0.3.1 before 1.4.5 and from 1.5.0-rc.0 before 1.5.3.

📍 영향받는 시스템

html_sanitize_ex 0.3.1 이상 1.4.5 미만, 1.5.0-rc.0 이상 1.5.3 미만

⚔️ 공격 벡터

사용자 입력 HTML에 <object data="공격자_URL"> 같은 요소를 삽입하여 필터를 우회하고 신뢰된 페이지에 외부 문서를 로드

🛡️ 대응 방법

html_sanitize_ex를 1.4.5 이상 또는 1.5.3 이상으로 업그레이드

🔧 검증 코드

출력된 버전이 0.3.1~1.4.4 또는 1.5.0-rc.0~1.5.2 범위에 속하면 취약하며, 1.4.5 또는 1.5.3 이상이면 패치된 것입니다.

Shell / Script
grep -rE 'html_sanitize_ex' mix.lock 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+(-rc\.[0-9]+)?'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Oracle Java SE