/** * SVG context patterns. * * SVG is XML-based but renders in browsers, giving it a unique attack surface * that combines XML parser behaviour with browser rendering and JavaScript execution. * * Many of these vectors bypass HTML sanitizers that don't understand SVG semantics * (DOMPurify has documented bypass vulnerabilities specifically in SVG/XML context). */ const SVG_PATTERNS = [ { id: 'svg-script-element', description: '