Signal · 2026-11-01

ChatGPT’s sandbox was an open door — and it matters for every AI agent on the web


Parameter Labs chained MathLive's innerHTML + YouTube oEmbed to escape ChatGPT's artifact iframe and exfiltrate private data. A $5K bounty for a vulnerability this serious.

Engraving: a row of separate stone walls, each built differently and pierced by one small opening of a different shape. The openings line up, and a straight orange rod passes through all of them into a closed, windowless stone block at the end.
Reading
No part of the chain was broken. Each component did what it was built to do, and each opening in it was a feature. The breach came from how the parts were put together: a path through the sandbox that existed only in the combination, and that no one was watching. As AI agents combine more services and render executable content, they create attack surfaces that exist in no single component.
Idea drawn
Separate walls, each whole and each with one small opening of a different shape, stand so that the openings line up, and an orange rod runs through all of them into a sealed block.
Rests on
"The attack chain is instructive: no single component was broken." / "But the composition — a sandboxed iframe talking to a parent page that trusts messages from anywhere — created a path that no one was monitoring for."
E. Tching, Threaded Through

What actually shipped

This is signal: a compositional sandbox escape that matters because every AI-rendered-content surface inherits the same boundary problem. Parameter Labs reported an XSS chain in ChatGPT’s HTML preview feature (the artifact canvas that renders interactive code and visualizations in a sandboxed iframe) Parameter Labs lab note:

  1. ChatGPT renders user-generated HTML in an iframe sandbox using MathLive as its math-rendering library.
  2. MathLive exposes a virtual keyboard triggered via postMessage() from any origin.
  3. The postMessage handler uses innerHTML to inject content — no origin check, no sanitization of the message payload.
  4. An unsandboxed iframe can be injected through that innerHTML.
  5. Google’s YouTube oEmbed endpoint can be tricked into reflecting executable JavaScript in its response.

With JavaScript execution on the ChatGPT page, the researchers could hit private user-facing APIs and exfiltrate data through an image reference. OpenAI fixed the issue on October 26, per the lab note, and awarded a $5,000 bug bounty — a figure the lab note itself reports.

Why the audience cares

The artifact canvas is exactly the kind of surface that will matter as AI agents move from generating text to generating executable content — web apps, dashboards, interactive demos. Every time a model renders a self-contained HTML file in a user’s browser, the sandbox boundary is the only thing standing between a mischievous model output and access to the user’s private session data.

The attack chain is instructive: no single component was broken. MathLive’s postMessage handler is a feature, not a bug. YouTube’s oEmbed endpoint can reflect untrusted content in a JSONP-style response, a vector the researchers document in detail. But the composition — a sandboxed iframe talking to a parent page that trusts messages from anywhere — created a path that no one was monitoring for.

For the agentic economy, this is a warning about compositional risk. Agent systems that combine multiple web services, render user-facing content, and communicate through message-passing APIs create attack surfaces that don’t exist in any single component.

What to watch next

Two things. First: whether OpenAI ships a permanent fix (origin-restricted postMessage handlers) or a band-aid (blocking oEmbed on the parent page). Second: how quickly other platforms that expose AI-generated content in iframes — GitHub Copilot’s live preview, Vercel’s AI chat artifacts, Cursor’s preview pane — adopt similar patterns, and whether any of them have been reviewed by security researchers.

The caveat

This was a responsible disclosure. The issue was patched within days of report, per the lab note.