A Google Labs agent skill was folding cross-origin iframes into the page it snapshotted
A security fix landed in google-labs-code/stitch-skills on November 28, in the extract-static-html skill that turns a running web app into a self-contained HTML snapshot. The script read each child frame's innerHTML with Puppeteer's frame.evaluate, which is not subject to the Same-Origin Policy, then wrote that markup into the parent frame's live DOM while the parent page's own JavaScript was still running, since script tags are stripped near the end. The PR's repro registers a MutationObserver on the parent and reads a canary served by another origin. Frames are now inlined only when their origin matches the parent's, with --allow-cross-origin-frames as an opt-out.
Why it matters
Headless browsers do not enforce the Same-Origin Policy the way a tab does, and an agent skill that drives one inherits that. Everything the browser protects you from β a third-party widget's contents, an embedded dashboard from another host, anything at any nesting depth β became readable by the page being snapshotted. If you have written any screenshot, scrape or snapshot tool for an agent on top of Puppeteer or Playwright, this is your bug too, and it sits less in your code than in the gap between what the automation API allows and what a browser allows.
What to do
Update the stitch-design plugin if you use extract-static-html, and leave --allow-cross-origin-frames off unless every frame on the page is yours. In your own browser automation, compute each frame's origin before you read it and fail closed on opaque origins, the way the new frame_policy module does. Then verify it: serve a canary on a second port, iframe it, and confirm the string never reaches the parent's output.
More from November 30, 2026
- Two pyca/cryptography maintainers shipped a crypto library whose assembly and proofs were written by LLMs
- Qwen Code now makes you pick a host or a VM before it runs a stranger's pull request
- A scope guard said no to admin.example.com and yes to adm%69n.example.com
- Five GGUF models on Hugging Face hid a Windows RAT after the last tensor β 2,428 downloads
- Told its code was unreviewed training data, Claude Code took 62% more turns
- Heretic is read-only: its author archived it to keep issue and pull request spam out
- Knuth will not read error reports submitted after 25 November until he posts fresh errata
Related
- Google cut AgentDojo attack success from 48.7% to 0.9% by asking one question: did the user ask for this? November 25, 2026
- Chrome just made every WebMCP tool object unserializable β and says more breaking changes are weeks away November 24, 2026
- Gemini drives native Mac apps from an isolated window β personal accounts only, which is the whole problem November 22, 2026