CVE-2026-41239

MEDIUM CVSS 3.1: 6.8 EPSS 0.26%
Updated Oct 27, 2026
Dompurify
Parameter Value
CVSS 6.8 (MEDIUM)
Affected Versions before 3.4.0
Type CWE-1289, CWE-79 (Cross-Site Scripting (XSS))
Vendor Dompurify
Public PoC No

DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Starting in version 1.0.10 and prior to version 3.4.0, `SAFE_FOR_TEMPLATES` strips `{{...}}` expressions from untrusted HTML. This works in string mode but not with `RETURN_DOM` or `RETURN_DOM_FRAGMENT`, allowing XSS via template-evaluating frameworks like Vue 2.

Version 3.4.0 patches the issue.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
High
Difficult to exploit
Privileges Required
None
No privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
None
No disruption

CVSS Vector v3.1

Related Vulnerabilities