{
  "id": "CVE-2026-17496",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-17496",
  "published_at": "2026-07-26T14:33:02.602Z",
  "title": "NoteGen chat preview XSS via unsanitized AI/skill HTML rendering",
  "vendor": "codexu",
  "product": "NoteGen",
  "cvss": {
    "score": 8.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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).",
  "cwe": "CWE-79",
  "cpes": [
    "cpe:2.3:a:notegen:notegen:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "codexu",
        "product": "NoteGen",
        "ranges": [
          "\u003c 0.32.0"
        ],
        "fixed_in": [
          "0.32.0"
        ]
      }
    ],
    "solutions": [
      "Upgrade to NoteGen 0.32.0 or later. The fix replaces unsanitized markdown-it HTML injection in chat preview with Streamdown-based rendering that hardens/sanitizes untrusted HTML in model output."
    ],
    "upgrade": [
      "Upgrade NoteGen to 0.32.0 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/codexu/note-gen/commit/ae3ba948c41d8a74b4a20f4c6f26fcdda2002298"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/codexu/note-gen/releases/tag/note-gen-v0.32.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
