High severity · published Jul 26, 2026
CVE-2026-17496
NoteGen chat preview XSS via unsanitized AI/skill HTML rendering
8.1
CVSS
0.5%
EPSS
No
On KEV
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).
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 46% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
NO
NoteGen · codexu
before 0.32.0 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-17496
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-17496
Product
https://github.com/codexu/note-gen
Patch
https://github.com/codexu/note-gen/commit/ae3ba948c41d8a74b4a20f4c6f26fcdda2002298
Product
https://github.com/codexu/note-gen/releases/tag/note-gen-v0.32.0
More from NoteGen
8.3
CVE-2026-17497
NoteGen arbitrary OS command execution via Tauri shell:allow-execute for bash/python
2.6
CVE-2026-111935
NoteGen through 0.38.3 Local File Disclosure via Chat Image Analysis
