Vulnerability in Cure53 Dompurify
CVE-2026-65899
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.004, 36.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Cure53 Dompurify — versions 0, 3.4.9
Weakness classification (CWE)
References
- GitHub Security Advisory (GHSA-vxr8-fq34-vvx9) (vendor-advisory, Exploit, Third Party Advisory)
- Patch Commit (Patch, patch)
- VulnCheck Advisory: DOMPurify before 3.4.9 Trusted Types Policy State Contamination (Third Party Advisory, third-party-advisory)