CVE-2026-65898
DOMPurify before 3.4.11 fails to clone the ALLOWED_ATTR allowlist …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/cure53/DOMPurify/security/advisories/GHSA-cmwh-pvxp-8882
- github.com/cure53/DOMPurify/pull/1482
- github.com/cure53/DOMPurify/commit/011bc3b2fcc4be17aa76f9030e8668207717acb9
- github.com/cure53/DOMPurify/releases/tag/3.4.11
- github.com/advisories/GHSA-cmwh-pvxp-8882
- www.vulncheck.com/advisories/dompurify-before-permanent-attribute-allowlist-pollution-via-
- nvd.nist.gov/vuln/detail/CVE-2026-65898
- cve.org/CVERecord?id=CVE-2026-65898
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.