{"id":"DHI-jegv-gqwr-qyzg-kehf","summary":"DOMPurify before 3.4.7 passes direct references to the module-level DEFAULT_ALLOWED_TAGS and DEFAULT_ALLOWED_ATTR sets…","details":"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.","modified":"2026-11-21T12:30:34.389133323Z","published":"2026-11-11T16:37:46Z","upstream":["CVE-2026-65902"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-jegv-gqwr-qyzg-kehf"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65902"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/dompurify-before-hook-mutation-pollution-via-allowedtags"},{"type":"ADVISORY","url":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-76mc-f452-cxcm"},{"type":"FIX","url":"https://github.com/cure53/DOMPurify/commit/7996f1dc78eb8b7922388aed75d94a9f8fad9a36"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-65902"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-76mc-f452-cxcm"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-65902"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-65902"}],"affected":[{"package":{"name":"grist","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/grist"},"versions":["1.7.17-0","1.7.17-1","1.7.17-2","1.7.17-3","1.7.17-4","1.7.17-5","1.7.17-6","1.7.19-2","1.7.19-3","1.7.19-4","1.7.19-5","1.7.19-6","1.7.20-0","1.7.20-10","1.7.20-7","1.7.20-8","1.7.20-9","1.7.21-0","1.7.21-1","1.7.21-2","1.7.21-3","1.7.21-4","1.7.21-5","1.7.21-6","1.7.21-7","1.7.21-8","1.7.21-9","1.7.22-1","1.7.22-10","1.7.22-11","1.7.22-12","1.7.22-13","1.7.22-2","1.7.22-3","1.7.22-4","1.7.22-5","1.7.22-6","1.7.22-7","1.7.22-8","1.7.22-9"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-jegv-gqwr-qyzg-kehf.json","owner_kind":"HSP"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"type":"CVSS_V4","score":"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/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"}]}