Template Injection Affecting org.webjars.bowergithub.cure53:dompurify package, versions [0,]
Threat Intelligence
Exploit Maturity
Proof of concept
Do your applications use this vulnerable package?
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 applications- Snyk ID SNYK-JAVA-ORGWEBJARSBOWERGITHUBCURE53-6474513
- published 11 Apr 2024
- disclosed 20 Mar 2024
- credit Ry0Tak
How to fix?
There is no fixed version for org.webjars.bowergithub.cure53:dompurify
.
Overview
org.webjars.bowergithub.cure53: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)> ]]>
References
CVSS Scores
version 3.1