Dompurify · Dompurify · CVE-2026-65898
**Name of the Vulnerable Software and Affected Versions**
DOMPurify versions prior to 3.4.11
**Description**
An issue exists where the software fails to clone the `ALLOWED ATTR` allowlist when `setConfig()` is used with an `uponSanitizeAttribute` hook. This allows the hook to permanently mutate the shared allowlist. An attacker can register a hook that conditionally allows dangerous attributes, such as `onerror`, for trusted elements. Subsequently, untrusted content can inherit this polluted allowlist, leading to the execution of event handlers as stored Cross-Site Scripting (XSS), a technique where malicious scripts are permanently stored on the target server.
**Recommendations**
Update to version 3.4.11 or later.