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 to allow HTML. The application injects this content into the DOM using dangerouslySetInnerHTML without sanitization and with a null Content Security Policy (CSP). Malicious input that influences the AI model's response can cause execution of arbitrary JavaScript in the privileged Tauri webview context when users view the chat response.
AI Analysis
Technical Summary
CVE-2026-17496 is a 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 without any HTML sanitization. Additionally, the CSP is set to null, providing no mitigation against script execution. An attacker can craft input that reaches the AI model prompt (such as a malicious skill REFERENCE.md) that instructs the model to emit executable HTML markup, including event handlers like img onerror. When the user views the chat response, this markup executes as JavaScript within the application's privileged Tauri webview context, enabling arbitrary script execution and thus cross-site scripting.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript code within the privileged context of the NoteGen application. This can lead to compromise of user data, unauthorized actions within the app, and potential further exploitation of the user's environment. The vulnerability has a CVSS 3.1 score of 8.1, indicating high severity with network attack vector, low attack complexity, no privileges required, user interaction required, and high impact on confidentiality and integrity.
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 opening untrusted or attacker-controlled content that could influence AI model prompts. Implementing HTML sanitization on rendered AI responses and enforcing a strict Content Security Policy are recommended mitigations once patches are 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 to allow HTML. The application injects this content into the DOM using dangerouslySetInnerHTML without sanitization and with a null Content Security Policy (CSP). Malicious input that influences the AI model's response can cause execution of arbitrary JavaScript in the privileged Tauri webview context when users view the chat response.
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 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 without any HTML sanitization. Additionally, the CSP is set to null, providing no mitigation against script execution. An attacker can craft input that reaches the AI model prompt (such as a malicious skill REFERENCE.md) that instructs the model to emit executable HTML markup, including event handlers like img onerror. When the user views the chat response, this markup executes as JavaScript within the application's privileged Tauri webview context, enabling arbitrary script execution and thus cross-site scripting.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript code within the privileged context of the NoteGen application. This can lead to compromise of user data, unauthorized actions within the app, and potential further exploitation of the user's environment. The vulnerability has a CVSS 3.1 score of 8.1, indicating high severity with network attack vector, low attack complexity, no privileges required, user interaction required, and high impact on confidentiality and integrity.
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 opening untrusted or attacker-controlled content that could influence AI model prompts. Implementing HTML sanitization on rendered AI responses and enforcing a strict Content Security Policy are recommended mitigations once patches are 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: 07/26/2026, 15:07:10 UTC
Last updated: 07/26/2026, 16:35:17 UTC
Views: 7
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.