Protection Mechanism Failure in DOMPurify - #VU134420

 

Protection Mechanism Failure in DOMPurify - #VU134420

Published: June 12, 2026


Vulnerability identifier: #VU134420
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: N/A
CWE-ID: CWE-693
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Cure53
Affected software:
DOMPurify

Detailed vulnerability description

The vulnerability allows a remote user to execute arbitrary script in the context of a Trusted Types sink.

The vulnerability exists due to a protection mechanism failure in the Trusted Types policy handling in DOMPurify when reusing a DOMPurify instance across trust boundaries after calling clearConfig() and requesting RETURN_TRUSTED_TYPE. A remote user can influence a previously supplied trusted types policy on the reused instance to execute arbitrary script in the context of a Trusted Types sink.

Exploitation requires a shared DOMPurify instance, a previously retained unsafe or less-trusted policy, and a later sanitize call that requests RETURN_TRUSTED_TYPE.


Remediation

Install security update from vendor's website.

Sources