Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade org.webjars.npm:dompurify
to version 2.5.0, 3.1.0 or higher.
org.webjars.npm: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.
<![CDATA[ ><img src onerror=alert(1)> ]]>