CVE-2026-65902
CVE-2026-65902 is a medium-severity vulnerability in Cure53 Dompurify with a CVSS 3.x base score of 6.1. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-501.
Key facts
- Severity: Medium (CVSS 3.x base score 6.1)
- CVSS v4: 5.3
- EPSS exploit prediction: 0% (11th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-501
- Affected product: Cure53 Dompurify
- Published:
- Last modified:
Description
DOMPurify before 3.4.7 (affected versions <= 3.4.5) 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.
Frequently asked questions
- What is CVE-2026-65902?
- DOMPurify before 3.4.7 (affected versions <= 3.4.5) 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.
- How severe is CVE-2026-65902?
- CVE-2026-65902 has a CVSS 3.x base score of 6.1, rated medium severity. It is exploitable over network with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is low, integrity low, and availability none.
- Is CVE-2026-65902 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (11th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-65902?
- CVE-2026-65902 affects Cure53 Dompurify. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2026-65902?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2026-65902 published?
- CVE-2026-65902 was published on 2026-07-23 and last updated on 2026-07-28.
References
- https://github.com/cure53/DOMPurify/commit/7996f1dc78eb8b7922388aed75d94a9f8fad9a36
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-76mc-f452-cxcm
- https://www.vulncheck.com/advisories/dompurify-before-hook-mutation-pollution-via-allowedtags
Affected products (1)
- cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*
More vulnerabilities in Cure53 Dompurify
- CVE-2024-47875 — Critical (CVSS 10.0): DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMpurify was vulnerable to…
- CVE-2024-48910 — Critical (CVSS 9.1): DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify was vulnerable to…
- CVE-2026-47423 — High (CVSS 8.2): DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. In 3.4.4, DOMPurify allowed…
- CVE-2024-45801 — High (CVSS 7.3): DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It has been discovered that…
- CVE-2026-65898 — High (CVSS 7.2): DOMPurify before 3.4.11 fails to clone the ALLOWED_ATTR allowlist when setConfig() is used with an…
- CVE-2026-66010 — Medium (CVSS 6.1): DOMPurify before 3.4.12 fails to execute afterSanitizeElements hook for custom elements allowed via…
All CVEs affecting Cure53 Dompurify →
Other CWE-501 vulnerabilities
- CVE-2026-25725 — Critical (CVSS 10.0): Claude Code is an agentic coding tool. Prior to version 2.1.2, Claude Code's bubblewrap sandboxing mechanism failed to…
- CVE-2025-48938 — Critical (CVSS 9.8): go-gh is a collection of Go modules to make authoring GitHub CLI extensions easier. A security vulnerability has been…
- CVE-2026-44091 — Critical (CVSS 9.1): An unauthenticated remote attacker can post a malicious ID to the MQTT Broker results in the creation of a new…
- CVE-2024-49050 — High (CVSS 8.8): Visual Studio Code Python Extension Remote Code Execution Vulnerability
- CVE-2023-28597 — High (CVSS 8.3): Zoom clients prior to 5.13.5 contain an improper trust boundary implementation vulnerability. If a victim saves a local…
- CVE-2024-23682 — High (CVSS 8.2): Artemis Java Test Sandbox versions before 1.8.0 are vulnerable to a sandbox escape when an attacker includes class…