DOMPurify versions >=3.0.0 and before 3.4.8, when configured with SAFE_FOR_TEMPLATES together with a DOM output mode (RETURN_DOM, RETURN_DOM_FRAGMENT, or IN_PLACE), fail to strip template expressions…
Medium CVSS 6.1
Summary
DOMPurify versions >=3.0.0 and before 3.4.8, when configured with SAFE_FOR_TEMPLATES together with a DOM output mode (RETURN_DOM, RETURN_DOM_FRAGMENT, or IN_PLACE), fail to strip template expressions (e.g. ${evil}, {{evil}}, <%evil%>) inside <template> element content. The final normalization/scrub pass (_scrubTemplateExpressions) uses a NodeIterator and node.normalize() that do not descend into template.content, so expressions that only form after adjacent text nodes merge survive sanitization…
In-depth triage · Auto channel
No in-depth report has been generated yet (DR-003 v2 AI pipeline is under construction).
Affected products
- :
Sources
- NVD DATABASE
Original Links
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-gvmj-g25r-r7wr Exploit
- https://www.vulncheck.com/advisories/dompurify-before-template-expression-injection-via-return-dom Third Party Advisory
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-gvmj-g25r-r7wr Exploit
Timeline
- nvd_ingest NVD