Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 86%

CVE-2026-65911: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cure53 DOMPurify

0
Medium
VulnerabilityCVE-2026-65911cvecve-2026-65911
Published: 07/23/2026 (07/23/2026, 13:16:22 UTC)
Source: CVE Database V5
Vendor/Project: cure53
Product: DOMPurify

Description

In DOMPurify through 3.3.3, function predicates supplied via ADD_ATTR or ADD_TAGS to DOMPurify.sanitize() persist in internal state (EXTRA_ELEMENT_HANDLING) across subsequent sanitize() calls on the same instance. If a later call on the same instance provides ADD_ATTR or ADD_TAGS 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 FORBID_TAGS) 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.

CVSS v4.0

Score 5.1medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Affected software

dompurify
pkg:npm/dompurify
Affected versions
<3.4.0

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

AILast updated: 07/30/2026, 22:32:55 UTC

Technical Analysis

CVE-2026-65911 describes a cross-site scripting (XSS) vulnerability in DOMPurify through version 3.3.3. The vulnerability arises because function predicates provided via ADD_ATTR or ADD_TAGS to DOMPurify.sanitize() persist in internal state across multiple sanitize() calls on the same instance. If a subsequent call replaces these with arrays rather than functions, the original function handlers remain active and continue to approve potentially dangerous attributes or tags, including event-handler attributes or forbidden tags that should be blocked. This can lead to XSS by allowing malicious content to survive sanitization. The vendor Cure53 considers this an edge case outside the typical threat model. The vulnerability is fixed in DOMPurify version 3.4.0.

Potential Impact

The vulnerability allows attacker-controlled attributes or tags that are normally forbidden to bypass DOMPurify's sanitization process, potentially enabling cross-site scripting attacks. This can lead to execution of malicious scripts in the context of the affected web application. However, the vendor regards this as an edge case and the CVSS score rates it as medium severity.

Mitigation Recommendations

Upgrade DOMPurify to version 3.4.0 or later, where this issue is fixed. No other official remediation or temporary fixes are documented. Patch status is confirmed by the vendor advisory indicating 3.4.0 as the fixed version.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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/30/2026, 22:32:55 UTC

Last updated: 09/05/2026, 10:52:11 UTC

Views: 86

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses