CVE-2026-65899
MEDIUM 5.1CVSS 4.0DOMPurify: Trusted Types policy survives `clearConfig()` and can poison later `RETURN_TRUSTED_TYPE` output
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
- 23 Jul 2026
- Last modified
- 24 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Analyzed
- Weakness
- CWE-693
- Also known as
- GHSA-vxr8-fq34-vvx9
- Sources
- NVDJSONOSV GHSA-vxr8-fq34-vvx9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | MEDIUM 5.1 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | cure53 | dompurifycpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:* |
>= 3.0.0, < 3.4.9 | 3.4.9 |
| OSV | npm | dompurify | < 3.4.9 | 3.4.9 |
References
- https://github.com/cure53/DOMPurify/commit/825e617753ac1169306a542d3174a77f717a0cf6 · Patch
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-vxr8-fq34-vvx9 · Exploit, Third Party Advisory, WEB
- https://www.vulncheck.com/advisories/dompurify-before-trusted-types-policy-state-contamination · Third Party Advisory
- https://github.com/cure53/DOMPurify · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 23 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 15 Jun 2026)