Get the daily emailDaily email
  1. Home
  2. Research
  3. This story

A single shared ChatGPT link could take over the viewer's account

Researchers at Parameter showed that a public ChatGPT share could run attacker JavaScript as chatgpt.com in the signed-in session of anyone who opened it, letting them list conversations, read private chats and exfiltrate them. The chain combined an…

Published Read the original

Ranked #3 of 22 on Sunday, November 1

A single shared ChatGPT link could take over the viewer's account

Why it matters

Anyone shipping LLM-generated previews or embedded interactive widgets in their own product faces the same class of cross-frame attack.

What happened

1 min read

Researchers at Parameter showed that a public ChatGPT share could run attacker JavaScript as chatgpt.com in the signed-in session of anyone who opened it, letting them list conversations, read private chats and exfiltrate them. The chain combined an unauthenticated postMessage listener in the MathLive library loaded by graphs, unsanitized innerHTML, an unsandboxed srcdoc iframe, and a CSP bypass via a YouTube JSONP endpoint. OpenAI fixed it on October 26 and rated it P1.

inscraper analysis

Our analysis

The core lesson is that sandboxing the preview was not enough: a third-party library in the parent page accepted postMessage from any origin, so two individually harmless features combined into a sandbox escape that per-feature testing would miss. The YouTube JSONP bypass is a reminder that broad CSP allowlists containing JSONP endpoints effectively defeat script restrictions. The bug is fixed, so ChatGPT users need not act, but teams building chat UIs with code previews, artifacts or rich widgets should audit their postMessage listeners, innerHTML sinks and CSP allowlists. The write-up is detailed and backed by OpenAI's P1 rating, which makes it more credible than a typical unverified claim.

More in Research