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 | Vendor | Product | Affected 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.
References
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-hrxw-jjj6-2g2j Vendor Advisory
- https://github.com/cure53/DOMPurify/pull/1744 Patch
- https://github.com/cure53/DOMPurify/commit/d05b24333a25f6f2e949493749523563f1523... Patch
- https://github.com/cure53/DOMPurify/releases/tag/3.5.0 URL
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-1442... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-144292 Vendor Advisory
- https://github.com/advisories/GHSA-hrxw-jjj6-2g2j
- https://github.com/cure53/DOMPurify Product
- https://security-tracker.debian.org/tracker/CVE-2026-144292 Vendor Advisory
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
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
Sources
CVE-2026-144292 · NVD
CVE-2026-144292 · MITRE
CVE-2026-144292 · OSV
GHSA-hrxw-jjj6-2g2j · GHSA
GHSA-hrxw-jjj6-2g2j · OSV
DEBIAN-CVE-2026-144292 · OSV
Track software like this
Free during beta