Researchers found a way to take over ChatGPT accounts through shared links
Security researchers say a chain of flaws in ChatGPT's HTML previews let a shared link steal a signed-in user's private data. OpenAI reportedly fixed it.

ChatGPT shows small interactive apps inside a walled-off box on the page. The box is meant to keep untrusted code away from your account. OpenAI used to call the feature Canvas; it is now reportedly called HTML previews.
Parameter Labs says it chained several flaws to break out. A math library used for graphs let the box send HTML to the main page, which added a frame with no walls. OpenAI only allowed scripts from a few sites, but YouTube was one, and a YouTube feature could return code that ran.
That code could read private data and send it out through an image request. Parameter Labs says a share link opened by a signed-in user could leak their data or act for them. OpenAI reportedly fixed it and paid a $5,000 bounty.
Anyone with a ChatGPT login was exposed if they opened a booby-trapped share link while signed in. OpenAI reportedly closed the hole, so there is nothing for you to change.
The facts
- Parameter Labs describes an exploit against ChatGPT's artifacts feature, where custom HTML apps are shown in a sandboxed iframe.
- OpenAI used to call the feature Canvas; the latest version appears to be called HTML previews.
- The MathLive library, used for graph support, has a virtual keyboard that code in the sandboxed frame can trigger in the parent page through postMessage(), and that code uses innerHTML.
- Injected HTML could add a new iframe without sandbox restrictions.
- OpenAI's content security rules blocked inline scripts and allowed scripts from only a few domains, but one of them was YouTube, whose oEmbed endpoint could be used to reflect JavaScript that then ran.
- A ChatGPT share URL could exfiltrate the private data of a signed-in user who visited it, or take actions on their behalf.
- OpenAI closed the hole and paid a $5,000 bug bounty.
Published