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

Configuration 1 (hide)

cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*

History

24 Oct 2026, 13:10

Type Values Removed Values Added
Summary
  • (es) DOMPurify 3.0.0 anterior a 3.4.9 no restablece la política de Trusted Types retenida cuando se llama a clearConfig(), por lo que una instancia de DOMPurify reutilizada a través de límites de confianza permanece vinculada a una TRUSTED_TYPES_POLICY suministrada previamente. Un llamador posterior que solicita una salida RETURN_TRUSTED_TYPE recibe un objeto TrustedHTML creado por la política antigua (potencialmente insegura) en lugar de un valor predeterminado limpio, lo que puede conducir a la ejecución de scripts en un sumidero de Trusted Types. Pasar TRUSTED_TYPES_POLICY: null en la llamada posterior tampoco borra la política retenida.

28 Jul 2026, 15:53

Type Values Removed Values Added
CPE cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*
First Time Cure53
Cure53 dompurify
References () https://github.com/cure53/DOMPurify/commit/825e617753ac1169306a542d3174a77f717a0cf6 - () https://github.com/cure53/DOMPurify/commit/825e617753ac1169306a542d3174a77f717a0cf6 - Patch
References () https://github.com/cure53/DOMPurify/security/advisories/GHSA-vxr8-fq34-vvx9 - () https://github.com/cure53/DOMPurify/security/advisories/GHSA-vxr8-fq34-vvx9 - Exploit, Third Party Advisory
References () https://www.vulncheck.com/advisories/dompurify-before-trusted-types-policy-state-contamination - () https://www.vulncheck.com/advisories/dompurify-before-trusted-types-policy-state-contamination - Third Party Advisory

23 Jul 2026, 14:18

Type Values Removed Values Added
New CVE

Information

Published : 2026-07-23 14:18

Updated : 2026-10-24 13:10


NVD link : CVE-2026-65899

Mitre link : CVE-2026-65899

CVE.ORG link : CVE-2026-65899


JSON object : View

Products Affected

cure53

  • dompurify
CWE
CWE-693

Protection Mechanism Failure