CVE-2026-65899: DOMPurify before 3.4.9 Trusted Types Policy State Contamination

Published Jul 23, 2026
·
Updated

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 TRUSTEDTYPESPOLICY. A later caller that requests RETURNTRUSTEDTYPE 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 TRUSTEDTYPESPOLICY: null on the later call also does not clear the retained policy.

Affected Software

1 affected component
DOMPurify DOMPurify<3.4.9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade DOMPurify to a version that resolves this vulnerability.

    Fixed in 3.4.9
  2. Operational

    Do not reuse a single DOMPurify instance across trust boundaries; create a new DOMPurify instance per trust boundary to avoid retained TRUSTED_TYPES_POLICY state contamination (v3.0.0 through before 3.4.9).

Event History

Jul 23, 2026
CVE Published
via MITRE·01:16 PM
Data Sourced
via MITRE·01:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:18 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-65899?

CVE-2026-65899 has a medium severity rating of 6.1.

2

How do I fix CVE-2026-65899?

To fix CVE-2026-65899, upgrade DOMPurify to version 3.4.9 or later.

3

What is the impact of CVE-2026-65899?

The impact of CVE-2026-65899 is that it allows for Trusted Types policy state contamination across trust boundaries.

4

What software is affected by CVE-2026-65899?

CVE-2026-65899 affects versions of DOMPurify prior to 3.4.9.

5

When was CVE-2026-65899 published?

CVE-2026-65899 was published on July 23, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203