Skip to content
MediumVulnerabilityLLM-specific

CVE-2025-50733: NextChat cross-site scripting in HTMLPreview of artifacts.tsx

Identifier
CVE-2025-50733
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

NextChat's HTMLPreview component in artifacts.tsx allows cross-site scripting. HTML from AI responses renders in an iframe with the 'allow-scripts' sandbox permission and without proper sanitization, so crafted prompts can make the AI generate HTML/JavaScript that runs in a user's browser when the preview is viewed. An attacker could then exfiltrate API keys stored in localStorage, act on the user's behalf, and steal session data.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.