Andrey Antukh 252683eac8 🐛 Sanitize SVG files on upload to prevent XSS
Add sanitize-svg function that removes dangerous elements and attributes:
- script tags
- foreignObject elements
- Event handler attributes (onload, onmouseover, etc.)
- javascript: URLs from href/xlink:href attributes

Apply sanitization in process-main-image before storing SVG files.

AI-assisted-by: mimo-v2.5
2026-08-03 18:26:47 +02:00
..
2026-05-29 11:24:58 +02:00
2026-07-22 13:11:57 +02:00
2026-05-29 11:24:58 +02:00
2026-07-09 19:34:15 +02:00