CVE-2026-65902
MEDIUMDescription
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.
Is your site exposed to CVE-2026-65902?
Run a free security scan — no signup, results in seconds.
CVSS v3.1 Score
EPSS — Exploit Prediction
EPSS estimates the probability that this vulnerability will be exploited in the wild within the next 30 days. A higher score means more likely to be exploited.
Weakness Type (CWE)
Affected Products
| Vendor | Product |
|---|---|
| cure53 | dompurify |
References
Advisories & Patches
Exploits
Frequently Asked Questions
What is CVE-2026-65902? +
How severe is CVE-2026-65902? +
What products are affected by CVE-2026-65902? +
How do I check if I'm vulnerable to CVE-2026-65902? +
Related Vulnerabilities
go-gh is a collection of Go modules to make authoring GitHub CLI extensions easier. A security vulnerability has been identified …
An unauthenticated remote attacker can post a malicious ID to the MQTT Broker results in the creation of a new …
Visual Studio Code Python Extension Remote Code Execution Vulnerability
Artemis Java Test Sandbox versions before 1.8.0 are vulnerable to a sandbox escape when an attacker includes class files in …
Trust boundary violation in Windows Attestation allows an authorized attacker to elevate privileges locally.
Trust boundary violation in Visual Studio Code - Python extension allows an unauthorized attacker to execute code locally.