CVE-2026-65898: DOMPurify before 3.4.11 Permanent Attribute Allowlist Pollution via setConfig

Published Jul 23, 2026
·
Updated

DOMPurify before 3.4.11 fails to clone the ALLOWEDATTR allowlist when setConfig() is used with an uponSanitizeAttribute hook, allowing the hook to permanently mutate the shared allowlist. Attackers can register a hook that conditionally allows dangerous attributes like onerror for trusted elements, then submit untrusted content that inherits the polluted allowlist and executes event handlers as stored XSS.

Affected Software

2 affected components
DOMPurify<3.4.11
Cure53 DOMPurify<3.4.11

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.11
  2. Configuration

    Upgrade DOMPurify to 3.4.11 or later to prevent permanent attribute allowlist pollution; if you cannot upgrade immediately, do not use setConfig() with an uponSanitizeAttribute hook until the upgrade is applied.

    DOMPurify setConfig() with uponSanitizeAttribute hook = Avoid using setConfig() with an uponSanitizeAttribute hook (or remove the hook) prior to upgrading

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
DescriptionSeverityWeaknessAffected Software
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-65898?

The severity of CVE-2026-65898 is classified as high with a score of 7.2.

2

How do I fix CVE-2026-65898?

To fix CVE-2026-65898, update DOMPurify to version 3.4.11 or later.

3

What is the risk associated with CVE-2026-65898?

CVE-2026-65898 poses a risk level of 44, indicating a significant potential for exploitation.

4

What impact can CVE-2026-65898 have on my application?

CVE-2026-65898 can lead to permanent attribute allowlist pollution, allowing attackers to inject harmful attributes.

5

What is the affected software for CVE-2026-65898?

The affected software for CVE-2026-65898 is DOMPurify versions prior to 3.4.11.

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