DOMPurify SAFE_FOR_TEMPLATES bypass: split template expressions survive in attached shadow root content on DOM output modes
What to do
- Upgrade to a fixed version: dompurify 3.4.17.
- Redeploy and restart long-running processes so they load the fixed code.
Affected packages
dompurify
- >= 3.4.4, <= 3.4.16
- 3.4.17
Check your project: npm ls dompurify --all
Is dompurify@3.4.17 safe to install? See the upgrade verdict →
What changed
Published in the GitHub Advisory Database as critical.