Hole in ChatGPT HTML previews: one shared link could take over someone else's account
What happened
Researchers at Parameter Labs found a chain of flaws in HTML previews, the part of ChatGPT that shows small interactive apps inside a sandboxed iframe. The attack went through the MathLive library's keyboard and a YouTube endpoint that was allowed by the content security policy (CSP). In the end, an attacker could run their own JavaScript on ChatGPT. A logged-in user who opened such a link could lose private data. OpenAI patched the hole and paid a $5,000 bounty, which Simon Willison thinks is too little for such a serious flaw.
Why it matters
If your app renders AI-written HTML, this story shows what can go wrong. Check whether your postMessage handlers accept messages from any iframe. Avoid innerHTML and don't leave broad exceptions in your CSP.