XSS in Cure53 Dompurify
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.002, 11.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Cure53 Dompurify — versions 0, 3.4.11
Weakness classification (CWE)
References
- GitHub Security Advisory (GHSA-cmwh-pvxp-8882) (vendor-advisory, Exploit, Third Party Advisory)
- VulnCheck Advisory: DOMPurify before 3.4.11 Permanent Attribute Allowlist Pollution via setConfig (Third Party Advisory, third-party-advisory)