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.

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