What’s Vulnerable › Vulnerabilities
CVE-2026-17496: NoteGen chat preview XSS via unsanitized AI/skill HTML rendering
- Severity: high (CVSS 8.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-07-26 · updated 2026-10-24
- Weakness: CWE-79
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 products
- codexu NoteGen: before 0.32.0 — fixed in 0.32.0
How to fix
Upgrade to a fixed version: codexu NoteGen 0.32.0. Check the vendor advisory for mitigations.
References
- https://github.com/codexu/note-gen
- https://github.com/codexu/note-gen/commit/ae3ba948c41d8a74b4a20f4c6f26fcdda2002298
- https://github.com/codexu/note-gen/releases/tag/note-gen-v0.32.0
Get alerted when CVE-2026-17496 or the next vulnerability affects your stack