MediumVulnerabilityLLM-specific
CVE-2025-50733: NextChat cross-site scripting in HTMLPreview of artifacts.tsx
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2025-50733
- Published
- Record updated
- 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.
Related items
- MediumCVE-2026-143864: InfiniFlow RAGFlow template injection in Canvas StringTransform HandlerSimilar attack, NVD/CVE Database
- MediumCVE-2026-85259: Gemini CLI Triage Flaw Lets Issue Authors Run Code in GitHub ActionsSimilar attack, StepSecurity Blog
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumZero-Click attacks in Microsoft 365 Copilot enabled data theftSimilar attack, BleepingComputer
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database