CVE-2026-65899 Details
Description
DOMPurify 3.0.0 before 3.4.9 does not reset the retained Trusted Types policy when clearConfig() is called, so a DOMPurify instance reused across trust boundaries stays bound to a previously supplied TRUSTED_TYPES_POLICY. A later caller that requests RETURN_TRUSTED_TYPE output receives a TrustedHTML object created by the old (potentially unsafe) policy rather than a clean default, which can lead to script execution at a Trusted Types sink. Passing TRUSTED_TYPES_POLICY: null on the later call also does not clear the retained policy.
A vulnerability exists in DOMPurify versions 3.0.0 prior to 3.4.9, where the library fails to reset the Trusted Types policy when the clearConfig() method is called. This issue allows a DOMPurify instance, reused across different trust boundaries, to remain linked to a previously set TRUSTED_TYPES_POLICY. As a result, a subsequent call requesting RETURN_TRUSTED_TYPE output may receive a TrustedHTML object generated by the old policy, which could be unsafe. This behavior can lead to script execution at a Trusted Types sink. Notably, passing TRUSTED_TYPES_POLICY: null in the later call does not clear the retained policy either.
Users can upgrade to DOMPurify version 3.4.9 or later, where this issue has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 27, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-693 | Protection Mechanism Failure | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| cure53 dompurify | >= 3.0.0, < 3.4.9 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 28, 2026 | Initial Analysis | [email protected] |
| Jul 27, 2026 | CVE Modified | CISA-ADP |
| Jul 23, 2026 | New CVE Received | [email protected] |