CVE-2026-65911: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cure53 DOMPurify
DOMPurify versions prior to 3.4.0 have a cross-site scripting (XSS) vulnerability due to improper handling of function predicates supplied via ADD_ATTR or ADD_TAGS in the sanitize() method. When a function is used in one call and later replaced by an array on the same instance, the original function handler persists, allowing dangerous attributes or tags to bypass sanitization. This issue is considered an edge case by the vendor and is patched in version 3.4.0.
AI Analysis
Technical Summary
In DOMPurify versions before 3.4.0, the sanitize() function maintains internal state for predicates supplied as functions via ADD_ATTR or ADD_TAGS. If a subsequent call on the same DOMPurify instance provides ADD_ATTR or ADD_TAGS as arrays instead of functions, the previously set function handlers are not cleared or overwritten. This persistence allows attacker-controlled event-handler attributes or forbidden tags to survive sanitization, effectively bypassing FORBID_TAGS and enabling cross-site scripting (XSS). The vendor Cure53 considers this an edge case outside the primary threat model. The vulnerability is fixed in DOMPurify version 3.4.0.
Potential Impact
This vulnerability can allow an attacker to inject malicious scripts by bypassing DOMPurify's sanitization process, potentially leading to cross-site scripting attacks. The impact is limited to scenarios where the same DOMPurify instance is reused with mixed predicate types, which is considered an edge case. The CVSS 4.0 score is 5.1 (medium severity), reflecting network attack vector, low complexity, no privileges required, user interaction needed, and limited scope and impact.
Mitigation Recommendations
Upgrade DOMPurify to version 3.4.0 or later, where this issue is fixed. The vendor advisory lists 3.4.0 as the patched version. No other official remediation or temporary fixes are documented. Users should avoid reusing the same DOMPurify instance with mixed predicate types as a workaround until upgrading.
CVE-2026-65911: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cure53 DOMPurify
Description
DOMPurify versions prior to 3.4.0 have a cross-site scripting (XSS) vulnerability due to improper handling of function predicates supplied via ADD_ATTR or ADD_TAGS in the sanitize() method. When a function is used in one call and later replaced by an array on the same instance, the original function handler persists, allowing dangerous attributes or tags to bypass sanitization. This issue is considered an edge case by the vendor and is patched in version 3.4.0.
CVSS v4.0
Score 5.1medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
In DOMPurify versions before 3.4.0, the sanitize() function maintains internal state for predicates supplied as functions via ADD_ATTR or ADD_TAGS. If a subsequent call on the same DOMPurify instance provides ADD_ATTR or ADD_TAGS as arrays instead of functions, the previously set function handlers are not cleared or overwritten. This persistence allows attacker-controlled event-handler attributes or forbidden tags to survive sanitization, effectively bypassing FORBID_TAGS and enabling cross-site scripting (XSS). The vendor Cure53 considers this an edge case outside the primary threat model. The vulnerability is fixed in DOMPurify version 3.4.0.
Potential Impact
This vulnerability can allow an attacker to inject malicious scripts by bypassing DOMPurify's sanitization process, potentially leading to cross-site scripting attacks. The impact is limited to scenarios where the same DOMPurify instance is reused with mixed predicate types, which is considered an edge case. The CVSS 4.0 score is 5.1 (medium severity), reflecting network attack vector, low complexity, no privileges required, user interaction needed, and limited scope and impact.
Mitigation Recommendations
Upgrade DOMPurify to version 3.4.0 or later, where this issue is fixed. The vendor advisory lists 3.4.0 as the patched version. No other official remediation or temporary fixes are documented. Users should avoid reusing the same DOMPurify instance with mixed predicate types as a workaround until upgrading.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-23T12:51:09.595Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a6215a29c2644c7f82072f5
Added to database: 07/23/2026, 13:22:42 UTC
Last enriched: 07/23/2026, 13:39:26 UTC
Last updated: 07/23/2026, 14:14:15 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.