Cross-site scripting in DOMPurify - CVE-2026-47423
Published: May 23, 2026
DOMPurify
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary script in the victim's browser.
The vulnerability exists due to cross-site scripting in the DOMPurify string-input sanitization path when sanitizing attacker-controlled HTML containing selectedcontent. A remote attacker can supply crafted HTML that is sanitized and then inserted into the page to execute arbitrary script in the victim's browser.
User interaction is required to load content that processes attacker-controlled HTML and inserts the returned string into the page.