REDHAT-BUG-2517772: Medium severity DOMPurify DOMPurify vulnerability

Published Aug 18, 2026
·
Updated

DOMPurify before 3.4.13 contains a cross-site scripting vulnerability in INPLACE sanitization where element-removal hooks fail to neutralize detached subtrees. Attackers can supply HTML with event handlers on descendant elements that execute after sanitization completes, even though the returned root appears clean.

Affected Software

1 affected component
DOMPurify DOMPurify<3.4.13

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.13

Event History

Aug 18, 2026
Data Sourced
via Red Hat·11:32 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using DOMPurify versions before 3.4.13 are exposed when they use IN_PLACE sanitization together with element-removal hooks. The risk applies when an attacker can supply HTML that is passed through that sanitization path.

2

What must an attacker provide to exploit the vulnerability?

An attacker must be able to supply crafted HTML containing event handlers on descendant elements. The exploit relies on detached subtrees whose handlers are not neutralized by element-removal hooks during IN_PLACE sanitization.

3

How can I determine whether my use of DOMPurify is affected?

Check whether the deployed DOMPurify version is earlier than 3.4.13, and review sanitization code for use of IN_PLACE mode and element-removal hooks. A clean-looking returned root does not rule out exposure if removed detached subtrees can retain descendant event handlers.

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