CVE-2026-41239

Medium

Description

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.

SeverityMedium
CVSS6.8
Exploit probability—
ProductDompurify
PublishedApr 23, 2026
First seenApr 23, 2026

How to fix

Update
  • dompurify3.4.0 or later

Affected products

ProductAffected versionsFixed in
dompurifynpm1.0.10 ≤ v < 3.4.03.4.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.