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

- Severity: Medium 5.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-15T20:12:53.000Z
- Modified: 2026-10-24T13:10:00.147Z
- Also known as: GHSA-vxr8-fq34-vvx9
- Weaknesses: CWE-693
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- cure53 DOMPurify: before 3.4.9; from 3.0.0 before 3.4.9 (not affected: 3.4.9)
- dompurify (npm): before 3.4.9

## Every score

- VulnCheck: CVSS:4.0 5.1 Medium `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`
- VulnCheck: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`

## References

- <https://github.com/cure53/DOMPurify/security/advisories/GHSA-vxr8-fq34-vvx9> (exploit, third-party-advisory, vendor-advisory, web)
- <https://github.com/cure53/DOMPurify/commit/825e617753ac1169306a542d3174a77f717a0cf6> (patch)
- <https://www.vulncheck.com/advisories/dompurify-before-trusted-types-policy-state-contamination> (third-party-advisory)
- <https://github.com/cure53/DOMPurify> (package)

## Sources

- CVE List: [CVE-2026-65899](https://www.cve.org/CVERecord?id=CVE-2026-65899), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-vxr8-fq34-vvx9](https://github.com/advisories/GHSA-vxr8-fq34-vvx9), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-65899](https://nvd.nist.gov/vuln/detail/CVE-2026-65899), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-65899 · Whole record: https://cve.day/CVE-2026-65899.json · Rebuilt by cve.day 2026-11-25T22:59:29.923Z
