Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.4

CVE-2026-144292: DOMPurify before 3.5.0 lets crafted HTML run code

CVE-2026-144292 · published 1 day ago
Summary

The DOMPurify library used to clean web page content could be tricked by a specially nested form tag. When the cleaned HTML is inserted again and processed by a template system, the hidden code can be reassembled and executed. Upgrade DOMPurify to version 3.5.0 or later to stop this behavior.

What to do
  • Update dompurify to version 3.5.0.
Affected software
Ecosystem VendorProductAffected versions
– cure53 dompurify < 3.5.0
npm – dompurify < 3.5.0
Fix: upgrade to 3.5.0
Debian:12 debian node-dompurify All versions
Original advisory text
DOMPurify SAFE_FOR_TEMPLATES bypass: nested <form> makes a template expression reassemble when sanitized output is reparsed
DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Prior to 3.5.0, DOMPurify.sanitize() with SAFE_FOR_TEMPLATES can return attacker-controlled markup whose brace fragments remain separated during sanitization but become adjacent when nested form elements are reparsed through innerHTML. A template engine that compiles the reparsed DOM can evaluate the reconstructed expression, allowing arbitrary JavaScript execution in the page origin. Plain unsplit template expressions remain scrubbed, and exploitation requires the sanitized output to be reparsed and compiled by a template engine. This issue is fixed in version 3.5.0.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker full control
Severity
9.4 Critical
Exploitation
1% chance of attack within 30 days
Type
CWE-79Cross-site Scripting (XSS)
CWE-1336Improper Neutralization of Special Elements Used in a Template Engine
Timeline
Published3 Dec 2026
Updated4 Dec 2026
First seen3 Dec 2026
Track software like this
Free during beta