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).
Published: 2026-07-26
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability in NoteGen occurs because the chat preview component renders AI‑generated responses using markdown‑it with HTML enabled and injects the output directly into the DOM via dangerouslySetInnerHTML. This process lacks any HTML sanitization and the page sets the Content‑Security‑Policy to null. When an attacker supplies content that influences the AI model prompt—such as a crafted skill or REFERENCE.md file—they can cause the model to emit malicious HTML containing executable payloads (for example, an img element with an onerror handler). Viewing the chat response in the privileged Tauri webview then executes that payload, granting arbitrary script execution within the application context.

Affected Systems

All installations of NoteGen older than version 0.32.0 are vulnerable, regardless of operating system or platform. Any instance that has not applied the 0.32.0 release is at risk.

Risk and Exploitability

The CVSS score of 8.1 indicates high severity. The EPSS score of < 1% suggests exploitation is considered unlikely in the wild, and the vulnerability is not listed in CISA KEV. Attack requires the attacker to supply malicious skill or other input that can reach the model prompt; once the user views the harmful chat response, arbitrary code executes within the application, posing a significant threat to confidentiality, integrity, and availability. The likely attack vector is via a malicious skill that the user may load or run within NoteGen, though the vulnerability is tied to local user actions and not a remote network interface.

Generated by OpenCVE AI on August 3, 2026 at 18:14 UTC.

Remediation

Vendor Solution

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.


OpenCVE Recommended Actions

  • Upgrade NoteGen to version 0.32.0 or later to replace the unsafe markdown rendering engine with a hardened, sanitized implementation.
  • If an immediate upgrade is not possible, restrict or remove any skills or external content sources that can inject text into the model prompt, ensuring only trusted input reaches the AI response channel.
  • As a temporary workaround, disable or avoid using the chat preview feature until a patch is applied, thereby preventing the unsanitized content from being rendered in the webview.

Generated by OpenCVE AI on August 3, 2026 at 18:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 27 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 27 Jul 2026 13:15:00 +0000

Type Values Removed Values Added
First Time appeared Codexu
Codexu notegen
Vendors & Products Codexu
Codexu notegen

Sun, 26 Jul 2026 15:00:00 +0000

Type Values Removed Values Added
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).
Title NoteGen chat preview XSS via unsanitized AI/skill HTML rendering
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: JFROG

Published:

Updated: 2026-07-27T14:44:46.464Z

Reserved: 2026-07-26T14:28:45.607Z

Link: CVE-2026-17496

cve-icon Vulnrichment

Updated: 2026-07-27T14:44:42.616Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-26T15:16:27.710

Modified: 2026-07-27T20:37:16.927

Link: CVE-2026-17496

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T18:15:04Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')