November 22, 2026

Critical OpenAI Vulnerability Allowed Attackers to Hijack ChatGPT Sessions via Malicious Shared Links

Importantly, the researchers emphasized that their work was conducted in a strictly controlled environment. Parameter stated that there is no evidence of this flaw being exploited by malicious actors in the wild prior to the fix. Their proof-of-concept was performed between separate accounts owned by the research team to ensure no real-world user data was ever at risk during the discovery phase.

How the Link Broke Out of Its Sandbox

The technical mechanism behind the exploit involved a sophisticated "chain" of vulnerabilities that allowed the attacker to escape the standard security "sandbox" employed by OpenAI. To understand how the breach occurred, it is necessary to examine how ChatGPT handles interactive content through its "Preview" feature.

The Preview feature is designed to allow ChatGPT to render HTML code blocks as functional, mini-webpages. Because rendering arbitrary HTML is inherently risky, OpenAI employs a sandboxing strategy. The Preview content is loaded within a "locked-down frame" (an iframe) hosted on a separate web address. Under normal circumstances, the browser’s Same-Origin Policy (SOP) prevents this isolated frame from interacting with or reading the data on the main ChatGPT page. However, the researchers discovered a secondary feature that inadvertently provided a bridge across this security divide.

A Shared ChatGPT Link Could Run Attacker Code in Your Session and Read Private Chats

The vulnerability chain began with the inclusion of an interactive graph within the shared conversation. To render these graphs, ChatGPT utilizes a third-party mathematics library known as MathLive. When MathLive is loaded into the main ChatGPT page, it initializes a "listener" designed to handle messages regarding its on-screen virtual keyboard. This listener is intended to facilitate communication between different parts of the interface to ensure the keyboard functions correctly.

The critical security failure occurred because this MathLive listener did not properly verify the origin of the messages it received. In the world of web security, a message passed between browser frames is only considered safe if the receiving end confirms the identity of the sender. Parameter discovered that the MathLive listener would accept a keyboard-related message from any sender—including the isolated Preview frame. Furthermore, the listener was configured to allow these messages to carry raw HTML.

By exploiting this oversight, the researchers were able to send a message from the untrusted Preview sandbox to the trusted main ChatGPT page. This message contained malicious HTML that instructed the main page to build a new frame. Because this new frame was generated by the main site itself, the browser treated it as a legitimate part of the chatgpt.com domain.