{"id":"CVE-2026-65899","published":"2026-07-23T13:16:18Z","modified":"2026-10-08T15:23:59Z","title":"DOMPurify before 3.4.9 Trusted Types Policy State Contamination","vendor":"cure53","product":"DOMPurify","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00413,"percentile":0.36425,"provenance":"source"},"cwes":[{"id":"CWE-693","name":"Protection Mechanism Failure"}],"references":[{"url":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-vxr8-fq34-vvx9","tags":["vendor-advisory"]},{"url":"https://github.com/cure53/DOMPurify/commit/825e617753ac1169306a542d3174a77f717a0cf6","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/dompurify-before-trusted-types-policy-state-contamination","tags":["third-party-advisory"]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":7.29},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"cure53","affectedVersions":[{"vendor":"cure53","product":"DOMPurify","versions":["< 3.4.9"]}],"fixedVersions":[{"vendor":"cure53","product":"DOMPurify","versions":["3.4.9"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-27T16:15:29.603133Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"dompurify","vulnerableRanges":["<3.4.9"],"patched":["3.4.9"],"from":["GHSA-vxr8-fq34-vvx9"],"provenance":"source"}],"summary":{"text":"DOMPurify, the cure53 HTML sanitisation library, contains a flaw in versions 3.0.0 before 3.4.9 in which calling clearConfig() does not reset a previously supplied Trusted Types policy, and passing TRUSTED_TYPES_POLICY: null on a later call does not clear it either. An attacker who can get a later caller reusing the same instance across trust boundaries to request RETURN_TRUSTED_TYPE output may receive TrustedHTML created by the stale policy, potentially leading to script execution at a Trusted Types sink, with user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:56:43Z"},"euvd":{"id":"EUVD-2026-48268","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-49978","published":"2026-07-14","fixed":"3.4.7","kev":false},{"cve":"CVE-2026-65902","published":"2026-07-23","fixed":"3.4.7","kev":false},{"cve":"CVE-2026-65900","published":"2026-07-23","fixed":"3.4.8","kev":false,"link":{"from":"CVE-2026-65900","to":"CVE-2026-65899","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:dompurify","fromFixed":"3.4.8","toFixed":"3.4.9","daysApart":0}]}},{"cve":"CVE-2026-65899","published":"2026-07-23","fixed":"3.4.9","kev":false},{"cve":"CVE-2026-65898","published":"2026-07-23","fixed":"3.4.11","kev":false,"link":{"from":"CVE-2026-65899","to":"CVE-2026-65898","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:dompurify","fromFixed":"3.4.9","toFixed":"3.4.11","daysApart":0}]}},{"cve":"CVE-2026-66010","published":"2026-07-24","fixed":"3.4.12","kev":false}],"package":"npm:dompurify"}}