From fb4ac84250ccdd7563be62673ba21640b4385847 Mon Sep 17 00:00:00 2001
From: Danny Avila =20in=20office=20HTML=20sanitizer?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Codex review on #12934 caught that `data:` lived in the global
`allowedSchemes`, which meant a smuggled `` would survive sanitization. The Sandpack
iframe sandbox does not gate `target="_blank"` navigations, so a
click would open attacker-controlled HTML in a new tab.
Scope `data:` to `
` only via `allowedSchemesByTag` (mammoth
inlines DOCX images as base64 `data:image/...` URIs — that path still
works). Add a regression suite (`sanitizeOfficeHtml security`) with
8 cases covering: after