CVE-2026-65912
Undergoing Analysis Undergoing Analysis - In Progress

DOM-based XSS Bypass in DOMPurify via URI Validation

Vulnerability report for CVE-2026-65912, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-23

Last updated on: 2026-07-23

Assigner: VulnCheck

Description

DOMPurify before 3.3.2 contains a URI validation bypass vulnerability when ADD_ATTR is provided as a predicate function via EXTRA_ELEMENT_HANDLING.attributeCheck. Attackers can supply a predicate that accepts specific attribute and tag combinations to bypass URI-safe validation, allowing unsafe protocols like javascript: to survive sanitization and execute as DOM-based XSS when the link is activated.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-23
Last Modified
2026-07-23
Generated
2026-07-23
AI Q&A
2026-07-23
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
dompurify dompurify to 3.3.2 (exc)
clearlydefined dompurify to 3.3.2 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

DOMPurify before version 3.3.2 has a URI validation bypass vulnerability when using the ADD_ATTR feature with EXTRA_ELEMENT_HANDLING.attributeCheck. Attackers can provide a predicate function that accepts specific attribute and tag combinations, allowing unsafe protocols like javascript: to bypass sanitization. This can lead to DOM-based cross-site scripting (XSS) when the malicious link is activated.

Detection Guidance

Check DOMPurify version with npm list dompurify or grep "version" in package.json. If version is below 3.3.2, the system is vulnerable. Inspect code using ADD_ATTR with EXTRA_ELEMENT_HANDLING.attributeCheck for predicate functions that may bypass URI validation.

Impact Analysis

This vulnerability allows attackers to inject malicious javascript: URLs that bypass DOMPurify's sanitization. When a user clicks the link, it can execute arbitrary JavaScript code in their browser, potentially stealing data, session cookies, or performing actions on their behalf.

Compliance Impact

This vulnerability could lead to unauthorized data access or modification, violating GDPR's data protection requirements and HIPAA's security rules for protected health information. Organizations using vulnerable DOMPurify versions may face compliance violations and potential fines.

Mitigation Strategies

Upgrade DOMPurify to version 3.3.2 or later immediately. Remove or review any custom predicate functions in ADD_ATTR that may allow unsafe URI protocols. Monitor network traffic for suspicious javascript: URLs or DOM-based XSS attempts.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-65912. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart