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 package | Versions | Reported by |
|---|---|---|
| note-gen | before 0.32.0 | CVE List |
| notegen notegen | before 0.32.0 | NVD |
Classification
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
| https://github.com/codexu/note-gen/commit/ae3ba948c41d8a74b4a20f4c6f26fcdda2002298 | patch | |
| https://github.com/codexu/note-gen/releases/tag/note-gen-v0.32.0 | product, release-notes, vendor-advisory | |
| https://github.com/codexu/note-gen | product | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-17496 changed 2026-07-27 | CVE Terms of Use |
| NVD | CVE-2026-17496 changed 2026-10-24 | Public domain |