Skip to content
Simon Willison·· 1d agoSelected

Parameter Labs discovers exploit in ChatGPT's artifacts feature allowing data exfiltration

Original source: Simon WillisonRead original
AI brief

Parameter Labs found a complex attack chain in ChatGPT's artifacts feature that allows untrusted code in a sandboxed iframe to execute JavaScript and exfiltrate private user data. The exploit leverages the MathLive library's virtual keyboard triggered via postMessage(), and uses the YouTube oEmbed endpoint to bypass OpenAI's Content Security Policy and execute scripts. Once JavaScript runs, the attacker can access private APIs and steal data via image references, enabling data theft or unauthorized actions when a victim visits a specially crafted share URL.

Why it matters

This vulnerability highlights a significant security flaw in ChatGPT's sandbox implementation, demonstrating how interactions between iframes and external services can be exploited to access private user data, which is critical for AI security and user privacy.

Source: Simon Willison · simonwillison.net