From 94f51d1813651194c87181ac86ee9f4e86b37d22 Mon Sep 17 00:00:00 2001 From: 0xPratik Date: Mon, 2 Nov 2026 22:55:03 +0545 Subject: [PATCH] fix(media): keep script-capable sources out of links and frames The Download link reused the media-element allowlist, which lets a data:image/svg+xml through. That is safe in an , but as a target="_blank" href it opens an SVG document that can run script. The link now uses a "link" sink (the old "frame" sink, renamed now that no frame uses it) that takes only http:, https: and blob:. A data: image still shows; it is just not offered for download. PDFs rendered in an unsandboxed