REDHAT-BUG-2506434: Medium severity Cure53 DOMPurify vulnerability

Published Jul 23, 2026
·
Updated

In DOMPurify through 3.3.3, function predicates supplied via ADDATTR or ADDTAGS to DOMPurify.sanitize() persist in internal state (EXTRAELEMENTHANDLING) across subsequent sanitize() calls on the same instance. If a later call on the same instance provides ADDATTR or ADDTAGS as an array rather than a function, the previously set function handler is neither cleared nor overwritten, so it continues to approve attacker-controlled attributes or tags. This can allow dangerous event-handler attributes or forbidden tags (bypassing FORBIDTAGS) to survive sanitization, resulting in cross-site scripting. The vendor (Cure53) considers this an edge case outside DOMPurify's threat model; the referenced advisory lists 3.4.0 as the patched version.

Affected Software

1 affected component
Cure53 DOMPurify<=3.3.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade DOMPurify to a version that resolves this vulnerability.

    Fixed in 3.4.0

Event History

Jul 23, 2026
Data Sourced
via Red Hat·02:01 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which application patterns are exposed to this issue?

Applications are exposed when they reuse the same DOMPurify instance across sanitize() calls, first supplying a function predicate through ADD_ATTR or ADD_TAGS and later supplying ADD_ATTR or ADD_TAGS as an array. In that sequence, the earlier function can remain active.

2

What can an attacker gain from the stale handler?

The retained predicate may continue approving attacker-controlled attributes or tags. This can preserve dangerous event-handler attributes or tags otherwise blocked by FORBID_TAGS, leading to cross-site scripting.

3

What version is identified as patched?

The referenced advisory identifies DOMPurify 3.4.0 as the patched version. The issue affects DOMPurify through 3.3.3.

4

How does the vendor characterize this issue?

Cure53 considers it an edge case outside DOMPurify's threat model.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203