DOMPurify before 3.4.18 SAFE_FOR_TEMPLATES Bypass Leading to XSS
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| cure53DOMPurify |
< 3.4.18→ 3.4.18 |
3.4.18 |
Original description The description as published by the source.
DOMPurify before 3.4.18 contains a SAFE_FOR_TEMPLATES bypass that allows attackers to smuggle template expressions past sanitization using nested form elements or orphaned end tags. When the sanitized output is reparsed via innerHTML, split braces merge into live {{...}} expressions that Vue or AngularJS evaluate, executing attacker JavaScript in victims' browsers.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- web github.com