Opening SecureFlowShared ChatGPT Link: MathLive's Unchecked Message Listener Let a Sandboxed Preview Run Code as chatgpt.com
Case summary & sources

AIDEFEND SecureFlow / SecureFlow Case Index

Parameter aidefend-sf0121

Shared ChatGPT Link: MathLive's Unchecked Message Listener Let a Sandboxed Preview Run Code as chatgpt.com

  • Copilot & SaaS
  • Data Exfiltration
  • Credential & Identity Theft

ChatGPT can publish a conversation as a public share link, and its HTML Preview feature turns an HTML code block into a small working web page. Because that page may contain arbitrary code, ChatGPT runs it in a restricted frame on a separate web address, so the code cannot read the signed-in chatgpt.com page around it. In October 2026, Mukul Goyal of the security company Parameter showed that one shared conversation could still run attacker JavaScript as chatgpt.com in the session of whoever opened it. The sandbox itself held; the crossing came from another component on the trusted page. An ordinary interactive graph in the same conversation loaded MathLive, an open-source math-input library, into the main page, and MathLive's listener for its on-screen keyboard accepted layout changes from any origin. Those layouts could carry raw HTML, which MathLive wrote into the page. The preview used this channel to make the page create a frame without a sandbox attribute, which therefore took the chatgpt.com origin, and a YouTube script address that ChatGPT's Content Security Policy allowed supplied the code that ran in it. In Parameter's tests between separate accounts, that code read the session token the page holds, listed the victim's conversations, retrieved a private conversation never shared with the attacker and sent part of it to a server the researchers controlled. The victim only had to open the link and click Preview once; in a variant where the block opened automatically, opening the link was enough. OpenAI reproduced the issue, raised its severity from P2 to P1, confirmed on 26 October 2026 that both versions of its web frontend rejected the reported messages, and paid a $5,000 bounty. No public report describes the technique's use in a real attack, and the sources name no CVE.

Mapped threat techniques

  • AML.T0011.003 Malicious Link
  • AML.T0085.002 Conversation Context and Memory
  • AML.T0025 Exfiltration via Cyber Means

Source