CVE-2026-65902
published medium CVSS 4.0 · 5.3DOMPurify before 3.4.7 Hook Mutation Pollution via allowedTags
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| cure53 | — | DOMPurify0 to < 3.4.7 (affected · semver) · 3.4.7 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
| SUSE / openSUSE | openSUSE-Tumbleweed | velociraptoraarch64 | Advisory build | 0.77.3.0.git141.b1612b50b-1.1 | OPENSUSE-SU-2026:12622-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | velociraptorppc64le | Advisory build | 0.77.3.0.git141.b1612b50b-1.1 | OPENSUSE-SU-2026:12622-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | velociraptors390x | Advisory build | 0.77.3.0.git141.b1612b50b-1.1 | OPENSUSE-SU-2026:12622-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | velociraptorx86_64 | Advisory build | 0.77.3.0.git141.b1612b50b-1.1 | OPENSUSE-SU-2026:12622-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.1 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| cure53 | DOMPurify | 0 to < 3.4.7 (affected · semver)3.4.7 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-501 Trust Boundary Violation
References
3- Patch Commit https://github.com/cure53/DOMPurify/commit/7996f1dc78eb8b7922388aed75d94a9f8fad9a36
- GitHub Security Advisory (GHSA-76mc-f452-cxcm) https://github.com/cure53/DOMPurify/security/advisories/GHSA-76mc-f452-cxcm
- VulnCheck Advisory: DOMPurify before 3.4.7 Hook Mutation Pollution via allowedTags https://www.vulncheck.com/advisories/dompurify-before-hook-mutation-pollution-via-allowedtags
Provider assertions
2VulnCheck · cna
DOMPurify before 3.4.7 Hook Mutation Pollution via allowedTags
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5ec4fcd81a17b0395c287c563e8904b2b207dc698efc1944904b67c98896853e
- Ingested
- 29 Oct 2026, 21:23:06 UTC
- Source record
- Official CVE record