# GHSA-JXRP-R7GX-Q4J8

- Priority: **Routine**
- Reason: Not severe (CVSS 5.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-24 · Modified: 2026-10-02
- Record: https://cvemate.com/vulnerability/GHSA-JXRP-R7GX-Q4J8 · JSON: https://cvemate.com/vulnerability/GHSA-JXRP-R7GX-Q4J8/json

## Description

```text
Duplicate Advisory: DOMPurify: `CUSTOM_ELEMENT_HANDLING` bypasses `afterSanitizeElements` for allowed custom elements.

## Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-c2j3-45gr-mqc4. This link is maintained to preserve external references.

## Original Description

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.
```

## Signals

- CVSS: 5.1 medium (v4.0, OSV · Npm) 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
- EPSS: not scored
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- Npm dompurify (Npm): ≤ 3.4.11

## 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>

---

Data as of 2026-12-05T10:14:09.039Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
