PT-2026-64287 · Dompurify · Dompurify

·

CVE-2026-66010

·

Published

2026-07-21

·

Updated

2026-08-06

CVSS v3.1

6.1

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions DOMPurify versions prior to 3.4.12
Description DOMPurify fails to execute the afterSanitizeElements hook for custom elements that are permitted through CUSTOM ELEMENT HANDLING.tagNameCheck. This allows attributes to bypass application security policies, enabling attackers to preserve sensitive attributes on custom elements. These attributes can subsequently be re-injected into innerHTML sinks, resulting in second-order Cross-Site Scripting (XSS) gadgets. XSS is a type of attack where malicious scripts are injected into trusted websites.
Recommendations Update to version 3.4.12 or later.

Exploit

Fix

XSS

Protection Mechanism Failure

Incomplete List of Disallowed Inputs

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-66010
GHSA-C2J3-45GR-MQC4

Affected Products

Dompurify