What’s Vulnerable › Vulnerabilities
CVE-2026-65898: DOMPurify before 3.4.11 Permanent Attribute Allowlist Pollution via setConfig
- Severity: high (CVSS 7.2 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-07-23 · updated 2026-10-24
- Weakness: CWE-79
Description
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.
Affected products
- cure53 DOMPurify: before 3.4.11 — fixed in 3.4.11
How to fix
Upgrade to a fixed version: cure53 DOMPurify 3.4.11. Check the vendor advisory for mitigations.
References
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-cmwh-pvxp-8882
- https://www.vulncheck.com/advisories/dompurify-before-permanent-attribute-allowlist-pollution-via-setconfig
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-cmwh-pvxp-8882
Get alerted when CVE-2026-65898 or the next vulnerability affects your stack