Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
N/A
Vulnerability 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.
CVSS Information
N/A
Vulnerability Type
N/A
Vulnerability Title
NextChat 安全漏洞
Vulnerability Description
NextChat是NextChat开源的一个用于快速部署私人 ChatGPT 网页应用的项目。 NextChat存在安全漏洞,该漏洞源于HTMLPreview组件未正确清理用户影响的HTML,可能导致执行任意JavaScript代码。
CVSS Information
N/A
Vulnerability Type
N/A