CVE-2026-17496: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in codexu NoteGen
NoteGen versions prior to 0.32.0 contain a cross-site scripting (XSS) vulnerability due to improper sanitization of AI chat responses rendered with markdown-it configured with html:true. The application injects these responses into the DOM using dangerouslySetInnerHTML without HTML sanitization and with a null Content Security Policy (CSP). Malicious input that reaches the AI model prompt can cause executable HTML markup to be included in the response, leading to arbitrary script execution within the privileged Tauri webview context.
AI Analysis
Technical Summary
CVE-2026-17496 is a high-severity cross-site scripting vulnerability in codexu NoteGen before version 0.32.0. The vulnerability arises because AI chat responses are rendered using markdown-it with html:true enabled and injected into the DOM via dangerouslySetInnerHTML in the chat-preview component without any HTML sanitization. Additionally, the Content Security Policy is set to null, providing no protection. An attacker can supply malicious content that influences the AI model prompt (e.g., via a crafted skill REFERENCE.md) to produce executable HTML markup such as an img tag with an onerror handler. When the user views the chat response, this markup executes JavaScript in the privileged Tauri webview, enabling arbitrary script execution within the application context.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript code within the privileged context of the NoteGen application’s Tauri webview. This can lead to compromise of the application, unauthorized actions, data theft, or other malicious activities. The vulnerability requires user interaction (viewing the malicious chat response) but does not require prior privileges or authentication.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid loading untrusted or attacker-controlled content that could influence AI model prompts. Implementing proper HTML sanitization on AI chat responses and enforcing a strict Content Security Policy are recommended mitigations once a patch is released.
CVE-2026-17496: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in codexu NoteGen
Description
NoteGen versions prior to 0.32.0 contain a cross-site scripting (XSS) vulnerability due to improper sanitization of AI chat responses rendered with markdown-it configured with html:true. The application injects these responses into the DOM using dangerouslySetInnerHTML without HTML sanitization and with a null Content Security Policy (CSP). Malicious input that reaches the AI model prompt can cause executable HTML markup to be included in the response, leading to arbitrary script execution within the privileged Tauri webview context.
CVSS v3.1
Score 8.1high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-17496 is a high-severity cross-site scripting vulnerability in codexu NoteGen before version 0.32.0. The vulnerability arises because AI chat responses are rendered using markdown-it with html:true enabled and injected into the DOM via dangerouslySetInnerHTML in the chat-preview component without any HTML sanitization. Additionally, the Content Security Policy is set to null, providing no protection. An attacker can supply malicious content that influences the AI model prompt (e.g., via a crafted skill REFERENCE.md) to produce executable HTML markup such as an img tag with an onerror handler. When the user views the chat response, this markup executes JavaScript in the privileged Tauri webview, enabling arbitrary script execution within the application context.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript code within the privileged context of the NoteGen application’s Tauri webview. This can lead to compromise of the application, unauthorized actions, data theft, or other malicious activities. The vulnerability requires user interaction (viewing the malicious chat response) but does not require prior privileges or authentication.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid loading untrusted or attacker-controlled content that could influence AI model prompts. Implementing proper HTML sanitization on AI chat responses and enforcing a strict Content Security Policy are recommended mitigations once a patch is released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- JFROG
- Date Reserved
- 2026-07-26T14:28:45.607Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a661f359c2644c7f8ea0a92
Added to database: 07/26/2026, 14:52:37 UTC
Last enriched: 08/02/2026, 21:08:56 UTC
Last updated: 09/08/2026, 01:01:59 UTC
Views: 118
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.