{"id":"GHSA-jxrp-r7gx-q4j8","revision":"ee52105e5ad94d58aa9422848395f440","records":[{"revision":"ee52105e5ad94d58aa9422848395f440","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-jxrp-r7gx-q4j8","aliases":[],"title":"Duplicate Advisory: DOMPurify: `CUSTOM_ELEMENT_HANDLING` bypasses `afterSanitizeElements` for allowed custom elements.","description":"## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of\u00A0GHSA-c2j3-45gr-mqc4. This link is maintained to preserve external references.\n\n## Original Description\n\nDOMPurify 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.","state":2,"publishedAt":"2026-07-24T15:33:01+00:00","modifiedAt":"2026-10-02T23:00:16.7816041+00:00","affected":[{"ecosystem":"npm","name":"dompurify","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"3.4.11"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":null,"severity":null},{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/cure53/DOMPurify/security/advisories/GHSA-c2j3-45gr-mqc4","https://nvd.nist.gov/vuln/detail/CVE-2026-66010","https://www.vulncheck.com/advisories/dompurify-before-hook-bypass-via-custom-element-handling"],"sourceUrl":"https://github.com/advisories/GHSA-jxrp-r7gx-q4j8","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-jxrp-r7gx-q4j8","identifiers":["GHSA-jxrp-r7gx-q4j8"]},"retained":false,"historicalAffected":[]}],"coverage":[]}