CVE-2026-17496
JSON

8.1high

NoteGen chat preview XSS via unsanitized AI/skill HTML rendering

Severity
8.1high CVSS:3.1 by JFROG
Exploit likelihood
0.32% (higher than 26% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
JFROG

Description

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).

Affected

Product or packageVersionsReported by
note-genbefore 0.32.0CVE List
notegen notegenbefore 0.32.0NVD

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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).

NVD (es)

NoteGen antes de la versión 0.32.0 renderiza las respuestas del chat de IA con markdown-it configurado con html:true e inyecta el resultado en el DOM a través de dangerouslySetInnerHTML en chat-preview, sin saneamiento de HTML y con CSP establecido en null. Contenido controlado por el atacante que llega al prompt del modelo (por ejemplo, un REFERENCE.md de habilidad malicioso que instruye al modelo a emitir HTML) puede hacer que la respuesta del modelo incluya marcado ejecutable como un gestor img onerror. Cuando el usuario ve la respuesta del chat, ese marcado se ejecuta como JavaScript en la webview privilegiada de Tauri, permitiendo la ejecución arbitraria de scripts en el contexto de la aplicación (cross-site scripting).

References

Sources

SourceRecordLicence
CVE ListCVE-2026-17496 changed 2026-07-27CVE Terms of Use
NVDCVE-2026-17496 changed 2026-10-24Public domain