{"id":"CVE-2025-50733","aliases":["CVE-2025-50733"],"related":[],"kind":"vulnerability","state":"published","title":"NextChat contains a cross-site scripting (XSS) vulnerability in the HTMLPreview component of artifacts.tsx that allows attackers to execute…","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"NextChat contiene una vulnerabilidad de cross-site scripting (XSS) en el componente HTMLPreview de artifacts.tsx que permite a los atacantes ejecutar código JavaScript arbitrario al renderizar contenido HTML en la interfaz de chat de la IA. Esta vulnerabilidad se produce porque el HTML generado por el usuario, procedente de las respuestas de la IA, se renderiza en un iframe con el permiso \"allow-scripts\" de sandbox sin la debida depuración. Esto puede explotarse mediante avisos manipulados específicamente que provocan que la IA genere código HTML/JavaScript malicioso. Cuando un usuario visualiza la vista previa HTML, el JavaScript inyectado se ejecuta en el contexto del navegador del usuario, lo que potencialmente permite a los atacantes extraer información confidencial (incluidas las claves de API almacenadas en localStorage), realizar acciones en nombre del usuario y robar datos de la sesión.","source":"nvd"}],"published":"2025-08-22T00:00:00.000Z","modified":"2026-06-17T09:35:20.430Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"}],"references":[{"url":"https://hackmd.io/@fai1424/BkgqMnNxgl","tags":[],"sources":["cvelist","nvd"]},{"url":"https://github.com/fai1424/Vulnerability-Research/blob/main/CVE-2025-50733/README.md","tags":["exploit"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-08-26T13:15:08.249Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-50733","url":"https://www.cve.org/CVERecord?id=CVE-2025-50733","licence":"CVE Terms of Use","modified":"2025-08-26T14:08:56.968Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-50733","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-50733","licence":"Public domain","modified":"2026-06-17T09:35:20.430Z"}],"updatedAt":"2026-11-25T22:59:03.560Z","epss":{"score":0.00281,"percentile":0.22161,"date":"2026-12-01T12:00:22.000Z"}}