CVE-2026-144292

7.6High

Published Dec 3, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.6CVSS

High

0CVSS v4.010

Attack vector
Network
Complexity
Low
Privileges
None
User action
Passive
Impact
High impact on confidentiality, integrity
Weakness
CWE-79, CWE-1336

What an attacker gets

Attackers can execute arbitrary JavaScript in the user's browser via XSS. This requires a user to interact with a page that uses DOMPurify with the SAFE_FOR_TEMPLATES option and subsequently reparses the output through a template engine.

Root cause

The sanitizer fails to properly split brace fragments when SAFE_FOR_TEMPLATES is enabled, allowing them to recombine into executable expressions during innerHTML reparsing.

Affected versions

DOMPurify versions prior to 3.5.0

CVSS v4.0 · CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Fix & remediation

Upgrade to DOMPurify 3.5.0 or later. If you cannot update immediately, avoid using the SAFE_FOR_TEMPLATES configuration option.

remediation — bash
$ npm install dompurify@latest

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD description

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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-144292

More fully triaged vulnerabilities you may want to check next.