PT-2026-42767 · Dompurify · Dompurify
CVE-2026-47423
·
Published
2026-05-22
·
Updated
2026-07-21
CVSS v3.1
8.2
High
| Vector | AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
DOMPurify version 3.4.4
Description
DOMPurify allows the
<selectedcontent> element by default, which enables a bypass of the sanitization process. This occurs because browsers may re-clone an XSS payload after the sanitizer has already processed the subtree. Specifically, the browser creates a <selectedcontent> clone from a selected <option>; while DOMPurify sanitizes the clone and the original <option>, the browser subsequently refreshes the clone from the original content. Since this refreshed clone resides in a subtree already traversed by DOMPurify, it remains unsanitized, allowing the execution of malicious scripts when the resulting string is inserted into the page via methods such as innerHTML.Recommendations
As a temporary workaround, consider restricting the use of the
<selectedcontent> element in the sanitizer configuration until a patch is available.Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Dompurify