Template Injection
medium severity
Detailed paths
Overview
dompurify is a DOM-only XSS sanitizer for HTML, MathML and SVG.
Affected versions of this package are vulnerable to Template Injection in purify.js, due to inconsistencies in the parsing of XML and HTML tags. Executable code can be injected in HTML inside XML CDATA blocks.
PoC
<![CDATA[ ><img src onerror=alert(1)> ]]>
Remediation
Upgrade dompurify to version 2.4.9, 3.0.11 or higher.