{"id":"CVE-2026-65899","summary":"DOMPurify before 3.4.9 Trusted Types Policy State Contamination","details":"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.","aliases":["GHSA-vxr8-fq34-vvx9"],"modified":"2026-07-25T04:14:50.543706756Z","published":"2026-07-23T13:16:18.389Z","related":["CGA-93j5-6rfx-x453"],"database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-693"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65899.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65899.json"},{"type":"ADVISORY","url":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-vxr8-fq34-vvx9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65899"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/dompurify-before-trusted-types-policy-state-contamination"},{"type":"FIX","url":"https://github.com/cure53/DOMPurify/commit/825e617753ac1169306a542d3174a77f717a0cf6"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cure53/dompurify","events":[{"introduced":"5dcf2a012c70ea8b65c0ecff7de86a61d7d98181"},{"fixed":"52102472d46035857c52df19e44285f8a1e102fc"},{"fixed":"825e617753ac1169306a542d3174a77f717a0cf6"}],"database_specific":{"extracted_events":[{"introduced":"3.0.0"},{"fixed":"3.4.9"}],"source":["DESCRIPTION","REFERENCES"]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-65899.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"}]}