Skip to main content
← All vulnerabilities
CVE-2026-65898GHSA-CMWH-PVXP-8882

DOMPurify before 3.4.11 Permanent Attribute Allowlist Pollution via setConfig

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.4.11
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • cure53 DOMPurify

    fixed in 3.4.11

  • dompurifynpm

    fixed in 3.4.11

References 2

GitHub · cure53/DOMPurify

vulncheck.com