CVE-2025-50733: XSS
NextChat contains a cross-site scripting (XSS) vulnerability in the HTMLPreview component of artifacts.tsx that allows attackers to execute arbitrary JavaScript code when HTML content is rendered in the AI chat interface. The vulnerability occurs because user-influenced HTML from AI responses is rendered in an iframe with 'allow-scripts' sandbox permission without proper sanitization. This can be exploited through specifically crafted prompts that cause the AI to generate malicious HTML/JavaScript code. When a user views the HTML preview, the injected JavaScript executes in the user's browser context, potentially allowing attackers to exfiltrate sensitive information (including API keys stored in localStorage), perform actions on behalf of the user, and steal session data.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-50733?
CVE-2025-50733 is considered a medium severity vulnerability due to its potential for cross-site scripting attacks.
How do I fix CVE-2025-50733?
To fix CVE-2025-50733, ensure that any user-generated HTML content is properly sanitized before being rendered in the AI chat interface.
Who is affected by CVE-2025-50733?
CVE-2025-50733 affects users of the NextChat application that utilize the HTMLPreview component.
What type of vulnerability is CVE-2025-50733?
CVE-2025-50733 is a cross-site scripting (XSS) vulnerability.
What are the potential impacts of CVE-2025-50733?
The potential impacts of CVE-2025-50733 include the execution of arbitrary JavaScript code, leading to data theft or account compromise.