CVE-2026-65898

DOMPurify before 3.4.11 fails to clone the ALLOWED_ATTR allowlist when setConfig() is used with an uponSanitizeAttribute hook, allowing the hook to permanently mutate the shared allowlist. Attackers can register a hook that conditionally allows dangerous attributes like onerror for trusted elements, then submit untrusted content that inherits the polluted allowlist and executes event handlers as stored XSS.
Configurations

Configuration 1 (hide)

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

History

24 Oct 2026, 13:10

Type Values Removed Values Added
Summary
  • (es) DOMPurify anterior a la versión 3.4.11 no logra clonar la lista de permitidos ALLOWED_ATTR cuando se utiliza setConfig() con un hook uponSanitizeAttribute, lo que permite que el hook mute permanentemente la lista de permitidos compartida. Los atacantes pueden registrar un hook que permite condicionalmente atributos peligrosos como onerror para elementos de confianza, y luego enviar contenido no confiable que hereda la lista de permitidos contaminada y ejecuta manejadores de eventos como XSS almacenado.

Information

Published : 2026-07-23 14:18

Updated : 2026-10-24 13:10


NVD link : CVE-2026-65898

Mitre link : CVE-2026-65898

CVE.ORG link : CVE-2026-65898


JSON object : View

Products Affected

cure53

  • dompurify
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')