CVE-2026-65902

Medium

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.

SeverityMedium
CVSS6.1
Exploit probability—
ProductCure53 Dompurify
PublishedJul 23, 2026
First seenJul 23, 2026
Weakness typeCWE-501CWE-501

How to fix

Affected products

ProductAffected versionsFixed in
cure53 dompurifyv < 3.4.73.4.7
dompurifynpmv < 3.4.73.4.7

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-65902 · Cure53 Dompurify · Dark Radar