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.
Exploitability Profile
Exploited in the wild
1 monitored report
Available
0 PoC signals · 5 repos
Confirmed
1 patch mentions · 38 advisories
Stable
Peak 1 on Dec 5, 2026
Operational SSVC remediation guidance paired with multi-source scoring and CWE mappings.
Recommended SOC / VM Action
Apply vendor patch or virtual patch immediately, verify exposed assets, and run SOC compromise hunts.
| Authority |
|---|
Triage Priority
CVSS v4.0
Source: GitHub
1mention
Across 1 tracked day
| Version |
|---|
| Score |
|---|
| Vector String |
|---|
CNAGitHub | v4.0 | 7.6HIGH | 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 |
1 total mentions across 1 observed day · Peak 1 on Dec 5, 2026
Deduplicated GitHub PoCs, vendor advisories, NVD references, and researcher links.