# CVE-2026-17496: NoteGen chat preview XSS via unsanitized AI/skill HTML rendering

- Severity: High 8.1 (CVSS:3.1, scored by JFROG) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-07-26T14:33:02.602Z
- Modified: 2026-10-24T13:10:00.147Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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).

(As written by CVE List.)

## Affected

- note-gen: before 0.32.0
- notegen notegen: before 0.32.0

## 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

- CVE List: [CVE-2026-17496](https://www.cve.org/CVERecord?id=CVE-2026-17496), CVE Terms of Use, modified 2026-07-27
- NVD: [CVE-2026-17496](https://nvd.nist.gov/vuln/detail/CVE-2026-17496), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-17496 · Whole record: https://cve.day/CVE-2026-17496.json · Rebuilt by cve.day 2026-11-25T22:59:30.165Z
