Vulnerability

CVE-2025-50733

mediumCVSS 3.1 6.1Published 22 Aug 2025

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

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 products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /fai1424/Vulnerability-Research/blob/main/CVE-2025-50733/RE…
  • hackmd.io /@fai1424/BkgqMnNxgl

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning