CVE-2026-65898 PUBLISHED

DOMPurify before 3.4.11 Permanent Attribute Allowlist Pollution via setConfig

Assigner: VulnCheck
Reserved: 23.07.2026 Published: 23.07.2026 Updated: 23.07.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
CVSS Score: 5.1

Product Status

Vendor cure53
Product DOMPurify
Versions Default: unaffected
  • affected from 0 to 3.4.11 (excl.)
  • Version 3.4.11 is unaffected

Credits

  • trace37labs finder

References

Problem Types

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