Skip to main content
Live
Main content

OpenAI patches ChatGPT share-link flaw that could hijack accounts

Parameter chained ChatGPT's Preview feature and the MathLive library to run code in a victim's session; OpenAI fixed it in eight days and paid $5,000.

Jaeden Schafer
Editor in Chief · · 4 min read
OpenAI logo

OpenAI has patched a flaw in ChatGPT that let a single public share link run attacker-controlled JavaScript inside the signed-in session of whoever opened it. Security firm Parameter found the bug, reported it through OpenAI's bug bounty program on October 18, and published its writeup on October 28 after OpenAI confirmed the fix.

The fix took eight days. OpenAI reproduced the issue on October 21 and raised its severity from P2 to P1, its most serious category. One of ChatGPT's two web frontends was fixed by October 22, and on October 26 OpenAI confirmed both versions rejected the attack messages and marked the issue resolved. Parameter received a $5,000 bounty the same day.

In Parameter's proof of concept, the attacker's code could list a victim's recent conversations, open a private chat that had never been shared, and send a small piece of it to a server the researchers controlled. Parameter said the same access could reach other account actions available through ChatGPT's frontend APIs. The test ran between separate accounts the researchers controlled, and no real-world exploitation was reported.

Key facts

  • 01Parameter reported the ChatGPT share-link flaw to OpenAI's bug bounty program on October 18, 2026.
  • 02OpenAI raised the severity from P2 to P1 on October 21 and confirmed the fix on October 26, eight days after the report.
  • 03The exploit could read a private conversation never shared with the attacker and send part of it to an outside server.
  • 04The chain ran through ChatGPT's HTML Preview, the MathLive math library, cross-frame messaging and a YouTube script allowed by policy.
  • 05OpenAI paid Parameter a $5,000 bounty; no real-world exploitation was reported and users need to take no action.

Delivery required almost nothing from the victim. The bait was an ordinary ChatGPT share link that could arrive by email, chat, a support ticket or a social post. In the most reliable version, the victim opened the link and clicked Preview once. Parameter later confirmed that Preview could open automatically on navigation, even after a hard refresh, which reduced the attack to opening the link.

The chain combined several features that were each reasonable on their own. ChatGPT's Preview renders HTML from a chat in a sandboxed frame on a separate domain, and that sandbox held. But a shared chat could also contain an interactive graph, and drawing it loaded the MathLive math library into the main ChatGPT page, leaving a message listener running for its on-screen keyboard.

That listener accepted messages from any sender without checking where they came from, and it accepted raw HTML inside keyboard-layout data. Through that channel, the sandboxed Preview could push attacker HTML into the trusted main page. The HTML created a new frame that the browser treated as part of chatgpt.com, without the sandbox.

The last step got past ChatGPT's content security policy. The policy blocked inline scripts but allowed scripts from YouTube, and a YouTube endpoint that echoed a callback parameter supplied the code that ran in the new frame.

Parameter said blocking that YouTube endpoint alone would not have fixed the problem. The firm named three root causes: MathLive acting on a settings-changing message without verifying the sender, that message carrying raw HTML, and the HTML being able to create an unsandboxed frame that inherited the chatgpt.com identity. CSP changes OpenAI shipped on October 23 blocked part of the chain while the second frontend update was still rolling out.

Related · from this week
OpenAI safety veteran David Robinson resigns, says culture is 'broken'
Jaeden Schafer · 4 min read →

ChatGPT users do not need to install, reset or change anything. The fix was applied on OpenAI's side across both versions of the web frontend.

Parameter's writeup, authored by Mukul Goyal, closes on the design lesson from the bug: "Isolation is only as strong as every bridge across it." A sandboxed frame can still compromise its parent page if a privileged listener there trusts the wrong sender.

ShareXLinkedInEmail
AI Box

Every AI model. One chat.

The latest models from ChatGPT, Claude, Gemini, Sora, ElevenLabs — 80+ models in a single chat. Compare answers side by side. Pick the best one every time.

  • ChatGPT, Claude, Gemini, Grok, DeepSeek — in one chat
  • Generate images & video with Sora, Veo, Ideogram
  • Compare any two models side by side
  • From $8.99/mo · 80+ models, all included
Try AI Boxaibox.ai
Trusted by 3,000+ teams
Got a tip?

Working on something we should cover, or seeing a story we missed? Send leads, documents, or feedback to hello@aichatdaily.com. For sensitive tips, see our secure tips page for Signal and PGP options.

Spotted an error? Email hello@aichatdaily.com with the URL and the issue, or read our full corrections policy.

AI Box Daily briefingFree · Daily · No fluff

Stay ahead of everyone in AI.

The tightly edited AI news email engineers, founders, and investors actually open. One email. Every weekday. Five minutes to finish.

Loved by 10,000+ AI professionals
Free forever. Unsubscribe with one click.

The briefing read inside teams at

Keep reading

More from Security

OpenAI logo
Security

OpenAI safety veteran David Robinson resigns, says culture is 'broken'

Robinson, who led safety reports for major product launches over 3.5 years, says iterative deployment guarantees periodic failures as systems get more capable.

Jaeden Schafer4 min read
Nvidia logo
Security

Nvidia opens OpenShell and Sentry to contain rogue AI agents

The chipmaker is pushing an open-source Agent Safety Platform as frontier labs disclose agents hacking Hugging Face and probing government sites.

Jaeden Schafer4 min read
Anthropic logo
Security

DC Circuit upholds Trump blacklist of Anthropic in 2-1 ruling

Appeals court says Pentagon can designate Anthropic a supply chain risk for restricting Claude features, even absent malicious intent.

Jaeden Schafer5 min read