# CVE-2026-65902: DOMPurify before 3.4.7 Hook Mutation Pollution via allowedTags

- Severity: Medium 5.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-15T19:59:09.000Z
- Modified: 2026-10-29T21:17:29.723Z
- Also known as: GHSA-76mc-f452-cxcm
- Weaknesses: CWE-501, CWE-693
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

DOMPurify before 3.4.7 passes direct references to the module-level DEFAULT_ALLOWED_TAGS and DEFAULT_ALLOWED_ATTR sets to the uponSanitizeElement and uponSanitizeAttribute hooks via data.allowedTags / data.allowedAttributes when sanitize is called without an explicit cfg.ALLOWED_TAGS / cfg.ALLOWED_ATTR array. A hook that mutates these fields permanently widens the default allow-lists for the lifetime of the DOMPurify instance, so all subsequent default-config sanitize calls inherit the widened defaults and attacker payloads using the poisoned tag/attribute name survive sanitization. removeAllHooks(), clearConfig(), and passing a fresh cfg do not recover the state; only constructing a new DOMPurify instance does.

(As written by CVE List.)

## Affected

- cure53 DOMPurify: before 3.4.7 (not affected: 3.4.7)
- dompurify (npm): before 3.4.7

## Every score

- VulnCheck: CVSS:4.0 5.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`
- VulnCheck: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/cure53/DOMPurify/security/advisories/GHSA-76mc-f452-cxcm> (exploit, third-party-advisory, vendor-advisory, web)
- <https://github.com/cure53/DOMPurify/commit/7996f1dc78eb8b7922388aed75d94a9f8fad9a36> (patch)
- <https://www.vulncheck.com/advisories/dompurify-before-hook-mutation-pollution-via-allowedtags> (third-party-advisory)
- <https://github.com/cure53/DOMPurify> (package)

## Sources

- CVE List: [CVE-2026-65902](https://www.cve.org/CVERecord?id=CVE-2026-65902), CVE Terms of Use, modified 2026-10-29
- GitHub Advisory Database: [GHSA-76mc-f452-cxcm](https://github.com/advisories/GHSA-76mc-f452-cxcm), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-65902](https://nvd.nist.gov/vuln/detail/CVE-2026-65902), Public domain, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-65902 · Whole record: https://cve.day/CVE-2026-65902.json · Rebuilt by cve.day 2026-11-25T22:59:29.928Z
