CVE-2026-66010
DOMPurify before 3.4.12 fails to execute afterSanitizeElements hook …
DOMPurify before 3.4.12 fails to execute afterSanitizeElements hook for custom elements allowed via CUSTOM_ELEMENT_HANDLING.tagNameCheck, allowing attributes to bypass application security policies. Attackers can preserve sensitive attributes on custom elements that later re-inject them into innerHTML sinks, creating second-order XSS gadgets.
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-c2j3-45gr-mqc4
- www.vulncheck.com/advisories/dompurify-before-hook-bypass-via-custom-element-handling
- github.com/cure53/DOMPurify/pull/1537
- github.com/cure53/DOMPurify/commit/a9ca1e537422319a557a9a2aa61f003b23b4a197
- github.com/cure53/DOMPurify/releases/tag/3.4.12
- nvd.nist.gov/vuln/detail/CVE-2026-66010
- github.com/advisories/GHSA-c2j3-45gr-mqc4
- nvd.nist.gov/vuln/detail/CVE-2026-66010
- cve.org/CVERecord?id=CVE-2026-66010
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.