XSS in N/a

CVE-2025-50733

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.

Vulnerability class: XSS (Cross-Site Scripting)

EPSS: 0.002 (10.5th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.

Affected products

  • N/a — versions n/a

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2025-50733?
CVE-2025-50733 is a medium-severity vulnerability in N/a, classified under Cross-site Scripting. CVSS score: 6.1/10. Published 2025-08-22.
How severe is CVE-2025-50733?
Medium severity. CVSS v3 base score is 6.1 out of 10.