ChatGPT Share Links Enabled Account Takeover

The 30-Second Skim
- What happened: Researchers chained a shared-chat graph, HTML Preview and YouTube JSONP to escape ChatGPT’s sandbox, giving attacker code the victim’s authenticated web identity and broad control over the account during a routine link visit.
- Key facts & numbers: ChatGPT’s public share feature packaged a graph that loaded MathLive and an HTML Preview into one /share/<id> exploit in October 2026; victims needed no app, workspace, pasted code or developer tools—only a link visit and, in the first stable version, one Preview click. MathLive installed a main-page listener that accepted keyboard-layout messages from any origin, then used an unsanitized helper to place Preview-supplied HTML into innerHTML. YouTube oEmbed JSONP supplied the next escape: ChatGPT’s CSP allowed YouTube scripts, so callback code ran inside an unsandboxed srcdoc iframe that inherited chatgpt.com’s identity.
- What happens next: The twist is that no single feature was the whole bug: the graph, Preview, MathLive and YouTube had to line up.
- ChatGPT’s public share feature packaged a graph that loaded MathLive and an HTML Preview into one /share/<id> exploit in October 2026; victims needed no app, workspace, pasted code or developer tools—only a link visit and, in the first stable version, one Preview click.
- MathLive installed a main-page listener that accepted keyboard-layout messages from any origin, then used an unsanitized helper to place Preview-supplied HTML into innerHTML.
- YouTube oEmbed JSONP supplied the next escape: ChatGPT’s CSP allowed YouTube scripts, so callback code ran inside an unsandboxed srcdoc iframe that inherited chatgpt.com’s identity.
- ChatGPT’s authenticated APIs let the injected code enumerate recent conversations, fetch messages from a private conversation never shared with the attacker and send selected content to an attacker-controlled server.
Why It Matters
For ChatGPT users, one shared link exposed private conversations and enabled actions under their authenticated account; for OpenAI, the October 26 P1 fix closes the demonstrated route, while the multi-feature chain shows how separately reasonable integrations can combine into cross-account compromise.
Sources Cited
- Hacker News — We Took over ChatGPT Accounts
Related Coverage
Ask SkimNews