DOMPurify, XSS via Template Expression Injection, CVE-2026-41239 (Medium) -DC-Jun2026-436

Listen to this Post

Intro (how CVE-2026-41239 works):

When DOMPurify is used with `SAFE_FOR_TEMPLATES: true` (which is meant to strip ${...}, {{...}}, and `<%...%>` expressions) and simultaneously with a DOM‑returning mode like RETURN_DOM: true, `RETURN_DOM_FRAGMENT: true` or IN_PLACE: true, an attacker can inject template expressions that survive the sanitization pass inside `