Protection Mechanism Failure in DOMPurify - #VU134420
Published: June 12, 2026
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.