diff --git a/src/lib/components/common/SVGPanZoom.svelte b/src/lib/components/common/SVGPanZoom.svelte
index 110878d62e..aaeb26dac9 100644
--- a/src/lib/components/common/SVGPanZoom.svelte
+++ b/src/lib/components/common/SVGPanZoom.svelte
@@ -49,7 +49,45 @@
- {@html svg}
+ {@html DOMPurify.sanitize(svg, {
+ USE_PROFILES: { svg: true, svgFilters: true }, // allow
{#if content}