CVE-2025-50733: XSS

Published Aug 22, 2025
·
Updated

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

1 affected component
NextChat NextChat

Event History

Aug 22, 2025
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

Who is affected by CVE-2025-50733?

CVE-2025-50733 affects users of the NextChat application that utilize the HTMLPreview component.

4

What type of vulnerability is CVE-2025-50733?

CVE-2025-50733 is a cross-site scripting (XSS) vulnerability.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203