PT-2026-63990 · Dompurify · Dompurify
CVSS v3.1
4.7
Medium
| Vector | AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
DOMPurify versions 3.0.0 through 3.3.3
Description
When using the
IN PLACE mode, the software fails to sanitize DOM elements that originate from a different window or realm, such as an iframe's contentDocument. This occurs because a cross-realm instanceof check within the isNode() function returns false for nodes from foreign realms. Consequently, the software stringifies the element, resets IN PLACE to false, and returns the original unsanitized element, allowing Cross-Site Scripting (XSS) payloads to remain intact.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Improper Check for Exceptional Conditions
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Dompurify