🔍 CVE-2026-17496

8.1
CVSS Score
HIGH
2026-07-26
2026-10-24 13:10
✅ 완료

🇰🇷 한글 설명

NoteGen 0.32.0 이전 버전은 AI 채팅 응답을 html:true로 설정된 markdown-it으로 렌더링한 뒤, 정제(sanitize) 없이 dangerouslySetInnerHTML로 DOM에 삽입하며 CSP도 null로 설정되어 있습니다. 공격자가 모델 프롬프트에 악성 HTML 생성을 지시하는 내용을 주입하면, 사용자가 응답을 볼 때 onerror 핸들러 같은 스크립트가 특권 Tauri 웹뷰에서 실행될 수 있습니다.

💡 쉬운 설명

AI가 보여주는 답변 안에 숨겨진 악성 코드가 들어갈 수 있고, 이를 열면 프로그램 안에서 그 코드가 실행됩니다. 공격자가 AI에게 특정 문서를 읽히도록 만들어 이 상황을 유도할 수 있습니다.

🇺🇸 원문 (English)

NoteGen before 0.32.0 renders AI chat responses with markdown-it configured with html:true and injects the result into the DOM via dangerouslySetInnerHTML in chat-preview, without HTML sanitization and with CSP set to null. Attacker-controlled content that reaches the model prompt (for example a malicious skill REFERENCE.md that instructs the model to emit HTML) can cause the model response to include executable markup such as an img onerror handler. When the user views the chat response, that markup runs as JavaScript in the privileged Tauri webview, enabling arbitrary script execution in the application context (cross-site scripting).

📍 영향받는 시스템

NoteGen 0.32.0 이전 버전 (Tauri 기반 데스크톱 앱)

⚔️ 공격 벡터

악성 skill REFERENCE.md 등 공격자 제어 콘텐츠가 모델 프롬프트에 유입되어 응답에 HTML/JS 페이로드가 포함되고, 사용자가 채팅 응답을 볼 때 XSS가 실행됨

🛡️ 대응 방법

NoteGen을 0.32.0 이상으로 업그레이드하고, HTML 정제(DOMPurify 등)를 적용하며 CSP를 적절히 설정

🔧 검증 코드

출력된 version 값이 0.32.0 미만이면 취약하고, 0.32.0 이상이면 패치가 적용된 것입니다.

Shell / Script
grep -i '"version"' /path/to/notegen/package.json 2>/dev/null

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Oracle Java SE