CVE-2026-144292
HIGH 7.6CVSS 4.0DOMPurify 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.
- Published
- 3 Dec 2026
- Last modified
- 4 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Received
- Weakness
- CWE-1336CWE-79
- Also known as
- GHSA-hrxw-jjj6-2g2j
- Sources
- NVDJSONCVE ListJSONOSV GHSA-hrxw-jjj6-2g2jJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.6 | 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 |
| CVE List | GitHub_M | CVSS 4.0 | HIGH 7.6 | 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 |
| OSV | GitHub | CVSS 4.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 | |
| CVE List | CISA-ADP | SSVC | Exploitation: poc; Automatable: no; Technical Impact: total |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | cure53 | DOMPurify | = < 3.5.0 | |
| OSV | npm | dompurify | < 3.5.0 | 3.5.0 |
References
- https://github.com/cure53/DOMPurify/commit/d05b24333a25f6f2e949493749523563f15230e2 · x_refsource_MISC, WEB
- https://github.com/cure53/DOMPurify/pull/1744 · x_refsource_MISC, WEB
- https://github.com/cure53/DOMPurify/releases/tag/3.5.0 · x_refsource_MISC, WEB
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-hrxw-jjj6-2g2j · x_refsource_CONFIRM, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-144292 · ADVISORY
- https://github.com/cure53/DOMPurify · PACKAGE
History
- 4 Dec 2026 01:56 UTC · OSV: first stored (published 3 Dec 2026)
- 3 Dec 2026 21:56 UTC · NVD: 1 reference added
- 3 Dec 2026 20:56 UTC · CVE List: updated (other details)
- 3 Dec 2026 19:56 UTC · NVD: first stored (published 3 Dec 2026)
- 3 Dec 2026 17:56 UTC · CVE List: first stored (published 3 Dec 2026)