CVE-2026-65903: DOMPurify before 3.4.0 ADD_TAGS Function Bypasses FORBID_TAGS

Published Jul 23, 2026
·
Updated

DOMPurify before 3.4.0 contains a logic error in the ADDTAGS function where short-circuit evaluation allows forbidden tags to bypass FORBIDTAGS restrictions. Attackers can craft input containing tags listed in FORBIDTAGS that are also added via ADDTAGS function, causing them to be retained in sanitized output.

Affected Software

1 affected component
DOMPurify DOMPurify<3.4.0

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
CVE Published
via MITRE·01:16 PM
Data Sourced
via MITRE·01:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:18 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-65903?

The severity of CVE-2026-65903 is rated as medium, with a CVSS score of 6.1.

2

How do I fix CVE-2026-65903?

To fix CVE-2026-65903, upgrade DOMPurify to version 3.4.0 or later.

3

What is the impact of CVE-2026-65903?

CVE-2026-65903 allows attackers to bypass FORBID_TAGS restrictions, potentially leading to the retention of forbidden HTML tags.

4

Which versions of DOMPurify are affected by CVE-2026-65903?

DOMPurify versions prior to 3.4.0 are affected by CVE-2026-65903.

5

What function in DOMPurify is associated with CVE-2026-65903?

The ADD_TAGS function in DOMPurify is associated with CVE-2026-65903.

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