Products Editor selected
Parameter Labs disclosed a complex attack chain against ChatGPT's HTML previews (artifacts pattern) that allowed untrusted code in a sandboxed iframe to escape and execute JavaScript on the parent page. The exploit leveraged the MathLive library's postMessage handler using innerHTML, then bypassed CSP by reflecting JavaScript through YouTube's oEmbed endpoint. Once executed, the attacker could exfiltrate private user data or take actions on their behalf. OpenAI patched the vulnerability and paid a $5,000 bug bounty.
Why it matters: Reveals a serious security flaw in ChatGPT's interactive HTML feature, demonstrating real-world risks and the importance of sandboxing and CSP configuration.
ChatGPTOpenAIweb security