Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

DOMPurify Template Sanitization Bypass (CVE-2026-144292)

CVE-2026-144292 is a DOMPurify SAFE_FOR_TEMPLATES bypass affecting client-side template processing.

Reviewed by
Brandefense Analyst Team
Published
Reading Time
3 min read
CVE ID
CVE-2026-144292
Vendor
Cure53
Affected Product
DOMPurify
Exploitation
Not confirmed
Published
2026-11-23

The advisory says attacker-controlled markup can pass sanitization, then form a live expression when an application reparses it into the DOM. If a template engine compiles that DOM, the expression can execute JavaScript in the page origin.The risk depends on the application's rendering path, not merely the presence of the library. Developers can use this profile alongside the vulnerability intelligence platform reference while identifying the deployed package version and template integration. The advisory describes cross-site scripting, not server-side remote code execution.

What it allows

How Does CVE-2026-144292 Bypass SAFE_FOR_TEMPLATES?

DOMPurify's advisory says its template protection checks text nodes and the serialized output before the application renders the result. In the reported case, nested form elements keep pieces of a template expression apart during those checks. A second HTML parse can discard a nested form boundary and join the pieces into one expression.

The application must then compile the reparsed DOM as a client-side template. The advisory verified this sequence with Vue 3 in-DOM templates and AngularJS 1.8.3. It also says an ordinary, unsplit expression is scrubbed. The effect is cross-site scripting in the viewing user's page, rather than code execution on the server.

The advisory includes a public reproduction, establishing that the behavior can be demonstrated under its test conditions. That reproduction does not establish exploitation against a deployed application. Brandefense Blackhole counted 2 dark-chat items mentioning CVE-2026-144292 from 5 September through 4 December 2026. The measured unit is an identifier-mentioning chat item; the count does not establish an incident or active exploitation.

Who is affected

Which CVE-2026-144292 Applications Are Affected?

The DOMPurify advisory lists npm package versions before 3.5.0 as affected and 3.5.0 as patched. Its demonstration uses 3.4.18 with SAFE_FOR_TEMPLATES enabled. Exposure additionally requires attacker-controlled markup to reach sanitization, the returned HTML to be reparsed, and a template engine to compile that resulting DOM.

Find each application that uses DOMPurify with SAFE_FOR_TEMPLATES and examine where its output goes next. Pay particular attention to components that place sanitized HTML into an in-DOM template. The advisory verified Vue 3 and AngularJS examples, but these tests do not establish that every use of either framework is vulnerable.

Upgrade the DOMPurify package to 3.5.0 or a later fixed release, then verify the version included in the running application's bundle. Test the actual rendering path with safe regression cases that exercise a second parse. Track the upgrade through the patch management process.

Timeline

  1. 2026-11-23

    The DOMPurify advisory was published with a public reproduction.

  2. 2026-12-03

    The advisory was updated and NVD published its CVE record.

What to do

  1. Inventory affected rendering paths

    Find DOMPurify versions below 3.5.0 and uses of SAFE_FOR_TEMPLATES. Identify whether sanitized output is reparsed into HTML and compiled by an in-DOM template engine.

  2. Upgrade DOMPurify

    Update affected applications to DOMPurify 3.5.0 or later. Cure53 lists 3.5.0 as the patched version and says no further 3.4.x release is planned.

  3. Verify the shipped version and behavior

    Check the dependency lockfile and deployed browser bundle after release. Confirm the running application includes at least 3.5.0 and add a safe regression test for the second-parse template path.

  4. Review suspicious content and activity

    As a defensive inference, review user-submitted rich text in affected rendering paths and investigate unexpected browser-side actions. The advisory provides a reproduction, not a detection signature.

What Brandefense can do

Frequently Asked Questions

Does CVE-2026-144292 require a template engine?

Yes. The advisory says the sanitized output must be reparsed and the resulting DOM compiled as a template. It verifies the path with Vue 3 and AngularJS examples.

What version fixes CVE-2026-144292?

The DOMPurify advisory lists 3.5.0 as patched. Upgrade to that version or later, then confirm the version shipped in the running browser bundle.

Is this a server-side RCE vulnerability?

No. The advisory describes JavaScript execution in the viewing user's page origin through a client-side template. Its server-side parse observation does not demonstrate server command execution.

Does the public reproduction prove active attacks?

No. The advisory's reproduction demonstrates the behavior in a test setup. It does not report an incident against a deployed application.

Sources

  1. DOMPurify SAFE_FOR_TEMPLATES bypass advisoryCure53 via GitHub Security Advisory
  2. DOMPurify 3.5.0 releaseCure53
  3. CVE-2026-144292 recordNVD
  4. Known Exploited Vulnerabilities catalogCISA
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →